aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php
index d4d337584..6b294b93e 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -586,11 +586,9 @@ function item_post(&$a) {
// preview mode - prepare the body for display and send it via json
if($preview) {
- $b = prepare_body($datarray,true);
require_once('include/conversation.php');
- $o = conversation(&$a,array(array_merge($datarray,$contact_record)),'search',false);
- $json = array('preview' => $o);
- echo json_encode($json);
+ $o = conversation(&$a,array(array_merge($contact_record,$datarray)),'search',false,true);
+ echo json_encode(array('preview' => $o));
killme();
}