mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 08:15:13 +00:00
fix attachment rendering for preview
This commit is contained in:
parent
057d885baf
commit
76106e16d5
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue