From a06b28b6934cda8a8cacd3ebf7c76b881a69b74e Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 15 Sep 2023 13:45:24 +0000 Subject: more type checking --- Zotlabs/Lib/Activity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 1158acb08..cc0ac547c 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2596,11 +2596,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; } } -- cgit v1.2.3