diff options
author | Mario <mario@mariovavti.com> | 2024-11-13 11:08:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-13 11:08:18 +0000 |
commit | b5c07e4c01f21ec836f01c1d65c8f6d9fcded54c (patch) | |
tree | 6b04408776050c814c1376bae2a7e7dae3d92f36 | |
parent | 39d0a3f1f6f2894839460ec706dd7c3d1afb38ca (diff) | |
download | volse-hubzilla-b5c07e4c01f21ec836f01c1d65c8f6d9fcded54c.tar.gz volse-hubzilla-b5c07e4c01f21ec836f01c1d65c8f6d9fcded54c.tar.bz2 volse-hubzilla-b5c07e4c01f21ec836f01c1d65c8f6d9fcded54c.zip |
this is not true anymore - check owner perms
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 1 | ||||
-rw-r--r-- | include/items.php | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index e74d04231..1693f9c9f 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -374,7 +374,6 @@ class Notifier { if (($relay_to_owner || $uplink) && ($cmd !== 'relay')) { logger('notifier: followup relay', LOGGER_DEBUG); - // 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; diff --git a/include/items.php b/include/items.php index 41bb3cff7..9ef44e147 100644 --- a/include/items.php +++ b/include/items.php @@ -361,7 +361,7 @@ function can_comment_on_post($observer_xchan, $item) { case 'specific': case 'contacts': case '': - if(local_channel() && get_abconfig(local_channel(), (($item['verb'] === ACTIVITY_SHARE) ? $item['source_xchan'] : $item['owner_xchan']), 'their_perms', 'post_comments')) { + if(local_channel() && get_abconfig(local_channel(), $item['owner_xchan'], 'their_perms', 'post_comments')) { return true; } if(intval($item['item_wall']) && perm_is_allowed($item['uid'],$observer_xchan,'post_comments')) { @@ -4034,7 +4034,6 @@ function find_related($item) { if (! $allRelated) { return false; } - if ($item['verb'] === 'Add' && $item['tgt_type'] === 'Collection') { $thisItem = json_decode($item['obj'],true); if (is_array($thisItem)) { |