diff options
author | Mario <mario@mariovavti.com> | 2025-05-29 19:10:20 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-29 19:10:20 +0000 |
commit | 29f14ff96bc0ec5096dac1c86ce7933cfc49094b (patch) | |
tree | f8bc879a964bf39642797f92730bfb959f2fde66 | |
parent | 8a8219fe72f0bb040ee3724fb0856d028ea54499 (diff) | |
download | volse-hubzilla-29f14ff96bc0ec5096dac1c86ce7933cfc49094b.tar.gz volse-hubzilla-29f14ff96bc0ec5096dac1c86ce7933cfc49094b.tar.bz2 volse-hubzilla-29f14ff96bc0ec5096dac1c86ce7933cfc49094b.zip |
only count comments if we are in threaded mode
-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 = ''; |