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 /include/items.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 'include/items.php')
-rw-r--r-- | include/items.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 57e5dbb96..6cef3d2cd 100644 --- a/include/items.php +++ b/include/items.php @@ -353,12 +353,13 @@ function can_comment_on_post($observer_xchan, $item) { case 'specific': case 'contacts': case '': - if(local_channel() && get_abconfig(local_channel(),$item['owner_xchan'],'their_perms','post_comments')) { + if(local_channel() && get_abconfig(local_channel(), (($item['verb'] === ACTIVITY_SHARE) ? $item['author_xchan'] : $item['owner_xchan']), 'their_perms', 'post_comments')) { return true; } if(intval($item['item_wall']) && perm_is_allowed($item['uid'],$observer_xchan,'post_comments')) { return true; } + break; default: |