Bugfix: preview has sometimes phantom mentions and tags

pull/2950/head
rabuzarus 2016-11-20 16:19:55 +01:00
rodzic 79ab2b5a86
commit 66341046d2
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -744,6 +744,9 @@ function item_post(&$a) {
if($preview) {
require_once('include/conversation.php');
// We set the datarray ID to -1 because in preview mode the dataray
// doesn't have an ID.
$datarray["id"] = -1;
$o = conversation($a,array(array_merge($contact_record,$datarray)),'search', false, true);
logger('preview: ' . $o);
echo json_encode(array('preview' => $o));