aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-09-15 13:45:24 +0000
committerMario <mario@mariovavti.com>2023-09-15 13:45:24 +0000
commita06b28b6934cda8a8cacd3ebf7c76b881a69b74e (patch)
tree0c437616025f99b2b9ad6f93024e9c0a357526e9 /Zotlabs/Lib/Activity.php
parent198070700c3f087b97e431ea64ae6845db8f4062 (diff)
downloadvolse-hubzilla-a06b28b6934cda8a8cacd3ebf7c76b881a69b74e.tar.gz
volse-hubzilla-a06b28b6934cda8a8cacd3ebf7c76b881a69b74e.tar.bz2
volse-hubzilla-a06b28b6934cda8a8cacd3ebf7c76b881a69b74e.zip
more type checking
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
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;
}
}