]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: preview has sometimes phantom mentions and tags
authorrabuzarus <rabuzarus@t-online.de>
Sun, 20 Nov 2016 15:19:55 +0000 (16:19 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Sun, 20 Nov 2016 15:19:55 +0000 (16:19 +0100)
mod/item.php

index 29a210135567ff326f6fd5222372c2b9406fa523..0deade41811fb4e0811f0063736c0df47c664403 100644 (file)
@@ -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));