diff options
author | Mario <mario@mariovavti.com> | 2023-11-09 19:32:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-11-09 19:32:29 +0000 |
commit | 85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6 (patch) | |
tree | f4138164362d501f2713fd9a83d7d52e38c0e2ab /Zotlabs/Daemon/Notifier.php | |
parent | 547e6542ba7d396cc1c349577e2078fda098bee6 (diff) | |
download | volse-hubzilla-85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6.tar.gz volse-hubzilla-85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6.tar.bz2 volse-hubzilla-85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6.zip |
some low level work on native repeats
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index 592dd2c38..4b74a7ba9 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -300,6 +300,11 @@ class Notifier { return; } + if ($target_item['verb'] === ACTIVITY_SHARE) { + // Provide correct representation across the wire. Internally this is treated as a comment. + $target_item['parent_mid'] = $target_item['thr_parent'] = $target_item['mid']; + } + if ($target_item['mid'] === $target_item['parent_mid']) { $parent_item = $target_item; $top_level_post = true; @@ -377,7 +382,7 @@ class Notifier { if (($relay_to_owner || $uplink) && ($cmd !== 'relay')) { logger('notifier: followup relay', LOGGER_DEBUG); - $sendto = (($uplink) ? $parent_item['source_xchan'] : $parent_item['owner_xchan']); + $sendto = (($uplink) ? $parent_item['source_xchan'] : (($parent_item['verb'] === ACTIVITY_SHARE) ? $parent_item['author_xchan'] : $parent_item['owner_xchan'])); self::$recipients = [$sendto]; self::$private = true; $upstream = true; |