diff options
-rw-r--r-- | include/items.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 48e150c99..535908857 100644 --- a/include/items.php +++ b/include/items.php @@ -5522,10 +5522,15 @@ function item_reaction_sql(string $ids, string $permission_sql = '', string $joi 'announce' => ['Announce'], 'accept' => ['Accept'], 'reject' => ['Reject'], - 'tentativeaccept' => ['TentativeAccept'], - 'comment' => ['Create', 'Update'] + 'tentativeaccept' => ['TentativeAccept'] ]; + $thread_allow = ((local_channel()) ? PConfig::Get(local_channel(), 'system', 'thread_allow', true) : Config::Get('system', 'thread_allow', true)); + + if ($thread_allow) { + $verbs['comment'] = ['Create', 'Update']; + } + $cte = ''; $select = ''; $join = ''; |