diff options
author | Mario <mario@mariovavti.com> | 2024-01-22 09:09:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-22 09:09:41 +0000 |
commit | b0664f7349c60183f0cb9597bd02b741d3c165c8 (patch) | |
tree | 4fa48e0c3b2761e0dc6d132f45a236ee838061c1 /Zotlabs/Daemon/Notifier.php | |
parent | 9cfd1c231843214351c81273622e848af4db7a45 (diff) | |
download | volse-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/Notifier.php')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 3 |
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; |