compound expression not allowed here

This commit is contained in:
zotlabs 2019-11-25 15:54:23 -08:00
parent b6d236cb6e
commit 2a0f71907c

View file

@ -646,6 +646,8 @@ class Activity {
$reply = false; $reply = false;
$is_directmessage = false; $is_directmessage = false;
$bbopts = (($activitypub) ? 'activitypub' : 'export');
$objtype = self::activity_obj_mapper($i['obj_type']); $objtype = self::activity_obj_mapper($i['obj_type']);
if (intval($i['item_deleted'])) { if (intval($i['item_deleted'])) {
@ -791,9 +793,9 @@ class Activity {
$ret['name'] = $i['title']; $ret['name'] = $i['title'];
} }
if ($i['summary']) { if ($i['summary']) {
$ret['summary'] = bbcode($i['summary'], [ (($activitypub) ? 'activitypub' : 'export') => true ]); $ret['summary'] = bbcode($i['summary'], [ $bbopts => true ]);
} }
$ret['content'] = bbcode($i['body'], [ (($activitypub) ? 'activitypub' : 'export)' => true ]); $ret['content'] = bbcode($i['body'], [ $bbopts => true ]);
$ret['source'] = [ 'content' => $i['body'], 'mediaType' => 'text/bbcode' ]; $ret['source'] = [ 'content' => $i['body'], 'mediaType' => 'text/bbcode' ];
if ($ret['summary']) { if ($ret['summary']) {
$ret['source']['summary'] = $i['summary']; $ret['source']['summary'] = $i['summary'];