diff options
author | Mario <mario@mariovavti.com> | 2023-09-15 13:45:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-09-15 15:46:15 +0200 |
commit | a1e583129fe31805b3a596d3ccef3f59fa0226ab (patch) | |
tree | f5a40ff54457fb0669fda08170e714b3b6b73aba | |
parent | 3a01aa40d8f788c89f50f9893214f6591dac7bae (diff) | |
download | volse-hubzilla-a1e583129fe31805b3a596d3ccef3f59fa0226ab.tar.gz volse-hubzilla-a1e583129fe31805b3a596d3ccef3f59fa0226ab.tar.bz2 volse-hubzilla-a1e583129fe31805b3a596d3ccef3f59fa0226ab.zip |
more type checking
(cherry picked from commit a06b28b6934cda8a8cacd3ebf7c76b881a69b74e)
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index cbf3dd85d..55ca1fb49 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2600,11 +2600,11 @@ class Activity { if (!$response_activity) { if ($act->type === 'Announce') { $s['author_xchan'] = self::get_attributed_to_actor_url($act); - $s['mid'] = $act->obj['id']; + $s['mid'] = $act->objprop('id') ?: $act->obj; // Do not force new thread if the announce is from a group actor if ($act->actor['type'] !== 'Group') { - $s['parent_mid'] = $act->obj['id']; + $s['parent_mid'] = $act->objprop('id') ?: $act->obj; } } |