aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-27 08:42:13 +0000
committerMario <mario@mariovavti.com>2023-02-27 08:42:13 +0000
commitf032bcc5f2abccd66308e7eb9491d01d7382375b (patch)
tree6683a04ae3d4e8e5bcec0189922f7eb90871dab0 /Zotlabs/Lib
parent9ab9ac0e2eab443265ceeba2f6dfbaa41c853a65 (diff)
downloadvolse-hubzilla-f032bcc5f2abccd66308e7eb9491d01d7382375b.tar.gz
volse-hubzilla-f032bcc5f2abccd66308e7eb9491d01d7382375b.tar.bz2
volse-hubzilla-f032bcc5f2abccd66308e7eb9491d01d7382375b.zip
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.
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php1
1 files changed, 1 insertions, 0 deletions
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));