Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed Jan 6, 2018
1 parent 25d4806 commit e7a2254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ protected function processRequest()
else // process message
{
$messengerInstance = $this->getMessengerInstance();
if (!$messengerInstance->getPostData())
return $this->getJsonErrorResponse();
$this->logPostData($messengerInstance->getPostData(), 'werules_chatbot_messenger.log');

$messageObject = $this->createMessageObject($messengerInstance);
Expand Down Expand Up @@ -125,7 +127,7 @@ protected function createMessageObject($messenger)
$messageObject->messagePayload = $this->getMessengerPayload($messenger); // TODO
$messageObject->chatMessageId = $messenger->MessageID();
if ($messenger->getMessageTimestamp())
$messageObject->sentAt = (int)$messenger->getMessageTimestamp();
$messageObject->sentAt = substr($messenger->getMessageTimestamp(), 0, 10);
else
$messageObject->sentAt = time();
$datetime = date('Y-m-d H:i:s');
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Go to **System > General Settings > Chatbot Settings**
- **v1.0.6:**
- Update license
- Fix issue [#142](https://github.com/blopa/Magento-Chatbot/issues/142)
- Minor bugs fixes
- **v1.0.5:**
- Add Promotional Messages
- Add Messenger Chatbox
Expand Down

0 comments on commit e7a2254

Please sign in to comment.