aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-01 21:09:12 -0800
committerfriendica <info@friendica.com>2014-01-01 21:09:12 -0800
commit76106e16d5ac3eaa0327cd4781914733f4c08448 (patch)
treea8e8ec16a1af1a343c052b5ba16c8839e214078a
parent057d885baf670467443dea0da0797b9289b919b4 (diff)
downloadvolse-hubzilla-76106e16d5ac3eaa0327cd4781914733f4c08448.tar.gz
volse-hubzilla-76106e16d5ac3eaa0327cd4781914733f4c08448.tar.bz2
volse-hubzilla-76106e16d5ac3eaa0327cd4781914733f4c08448.zip
fix attachment rendering for preview
-rw-r--r--mod/item.php1
1 files changed, 1 insertions, 0 deletions
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));