From 76106e16d5ac3eaa0327cd4781914733f4c08448 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 1 Jan 2014 21:09:12 -0800 Subject: fix attachment rendering for preview --- mod/item.php | 1 + 1 file changed, 1 insertion(+) (limited to 'mod') diff --git a/mod/item.php b/mod/item.php index b2afc9b1a..444248846 100644 --- a/mod/item.php +++ b/mod/item.php @@ -651,6 +651,7 @@ function item_post(&$a) { $datarray['owner'] = $owner_xchan; $datarray['author'] = $observer; + $datarray['attach'] = json_encode($datarray['attach']); $o = conversation($a,array($datarray),'search',false,'preview'); logger('preview: ' . $o, LOGGER_DEBUG); echo json_encode(array('preview' => $o)); -- cgit v1.2.3