Skip to content

Commit

Permalink
fix messages with mention being saved twice
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 7, 2016
1 parent 5f95110 commit 67961e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.php
Expand Up @@ -1500,7 +1500,7 @@

$messagesTableGateway = new DirectusMessagesTableGateway($acl, $ZendDb);
$id = $messagesTableGateway->sendMessage($requestPayload, array_unique($userRecipients), $currentUser['id']);
$params['id'] = $id;
$requestPayload['id'] = $params['id'] = $id;

preg_match_all('/@\[.*?\]/', $requestPayload['message'], $results);
$messageBody = $requestPayload['message'];
Expand Down

0 comments on commit 67961e1

Please sign in to comment.