fix attachment rendering for preview

This commit is contained in:
friendica 2014-01-01 21:09:12 -08:00
parent 057d885baf
commit 76106e16d5

View file

@ -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));