aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-22 09:09:41 +0000
committerMario <mario@mariovavti.com>2024-01-22 09:09:41 +0000
commitb0664f7349c60183f0cb9597bd02b741d3c165c8 (patch)
tree4fa48e0c3b2761e0dc6d132f45a236ee838061c1 /Zotlabs/Daemon
parent9cfd1c231843214351c81273622e848af4db7a45 (diff)
downloadvolse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.tar.gz
volse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.tar.bz2
volse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.zip
store the original announce actor (the one that pushed the item into our stream first) in source_xchan instead of owner_xchan. this way we will preserve the real owner for the thread and not have conflicts when dealing with deletes of comments or likes
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Notifier.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index d1c0e4ec8..0474a4a26 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -374,7 +374,8 @@ class Notifier {
if (($relay_to_owner || $uplink) && ($cmd !== 'relay')) {
logger('notifier: followup relay', LOGGER_DEBUG);
- $sendto = (($uplink) ? $parent_item['source_xchan'] : (($parent_item['verb'] === ACTIVITY_SHARE) ? $parent_item['author_xchan'] : $parent_item['owner_xchan']));
+ // If the Parent item is an Announce the real owner is the parent author
+ $sendto = (($uplink) ? $parent_item['source_xchan'] : $parent_item['owner_xchan']);
self::$recipients = [$sendto];
self::$private = true;
$upstream = true;