From f032bcc5f2abccd66308e7eb9491d01d7382375b Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 27 Feb 2023 08:42:13 +0000 Subject: Default owner_xchan to $observer (sender) in Activity::store() - this is because in case where an announce holds a relayed activity we drop the announce and process the relayed activity only. In that case actor.id as set in Activity::decode_note() will not be the correct owner. In other cases actor.id and sender should be identical. --- Zotlabs/Lib/Activity.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 93432c5ee..dc868c93e 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2852,6 +2852,7 @@ class Activity { } $allowed = false; + $item['owner_xchan'] = $observer_hash; // TODO: not implemented // $permit_mentions = intval(PConfig::Get($channel['channel_id'], 'system','permit_all_mentions') && i_am_mentioned($channel,$item)); -- cgit v1.2.3