mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
provide full object if available
This commit is contained in:
parent
722bce13f8
commit
633cadbf4e
1 changed files with 10 additions and 1 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue