Merge pull request #2950 from rabuzarus/berlin_fix_post_preview
Bugfix: preview has sometimes phantom mentions and tags
This commit is contained in:
commit
dd4a23070c
|
@ -744,6 +744,9 @@ function item_post(&$a) {
|
||||||
|
|
||||||
if($preview) {
|
if($preview) {
|
||||||
require_once('include/conversation.php');
|
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);
|
$o = conversation($a,array(array_merge($contact_record,$datarray)),'search', false, true);
|
||||||
logger('preview: ' . $o);
|
logger('preview: ' . $o);
|
||||||
echo json_encode(array('preview' => $o));
|
echo json_encode(array('preview' => $o));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user