aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-05-29 19:10:20 +0000
committerMario <mario@mariovavti.com>2025-05-29 19:10:20 +0000
commit29f14ff96bc0ec5096dac1c86ce7933cfc49094b (patch)
treef8bc879a964bf39642797f92730bfb959f2fde66
parent8a8219fe72f0bb040ee3724fb0856d028ea54499 (diff)
downloadvolse-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.php9
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 = '';