provide full object if available

This commit is contained in:
nobody 2021-06-23 17:13:10 -07:00
parent 722bce13f8
commit 633cadbf4e

View file

@ -3226,7 +3226,16 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
$arr['verb'] = 'Announce';
$arr['obj'] = $item['mid'];
if (is_array($item['obj'])) {
$arr['obj'] = $item['obj'];
}
elseif (is_string($item['obj']) && strlen($item['obj'])) {
$arr['obj'] = json_decode($item['obj'],true);
}
if (! $arr['obj']) {
$arr['obj'] = $item['mid'];
}
$arr['author_xchan'] = $channel['channel_hash'];