aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-01 17:12:43 +0000
committerMario <mario@mariovavti.com>2024-02-01 17:12:43 +0000
commit8ad7376865b45f8943499c803a6014d961a73cb4 (patch)
treec3951b688e5cc3af6a1c305461eb2dd874e09514 /Zotlabs
parentc41831aff900d40c89e57dc7c1260a7d3d98323f (diff)
downloadvolse-hubzilla-8ad7376865b45f8943499c803a6014d961a73cb4.tar.gz
volse-hubzilla-8ad7376865b45f8943499c803a6014d961a73cb4.tar.bz2
volse-hubzilla-8ad7376865b45f8943499c803a6014d961a73cb4.zip
more fix conv_list template
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 07cc88581..6b07e32e9 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -373,7 +373,7 @@ class ThreadItem {
if($conv->get_mode() === 'channel')
$viewthread = z_root() . '/channel/' . $owner_address . '?f=&mid=' . urlencode(gen_link_id($item['mid']));
- $comment_count_txt = ['label' => sprintf(tt('%d Comment', '%d Comments', $total_children), $total_children), 'count' => $total_children];
+ $comment_count_txt = ['label' => sprintf(tt('%d comment', '%d comments', $total_children), $total_children), 'count' => $total_children];
$list_unseen_txt = $unseen_comments ? ['label' => sprintf(t('%d unseen'), $unseen_comments), 'count' => $unseen_comments] : [];
$children = $this->get_children();
@@ -566,7 +566,7 @@ class ThreadItem {
// Collapse
if(($nb_children > $visible_comments) || ($thread_level > 1)) {
$result['children'][0]['comment_firstcollapsed'] = true;
- $result['children'][0]['num_comments'] = $comment_count_txt;
+ $result['children'][0]['num_comments'] = $comment_count_txt['label'];
$result['children'][0]['hide_text'] = sprintf( t('%s show all'), '<i class="fa fa-chevron-down"></i>');
if($thread_level > 1) {
$result['children'][$nb_children - 1]['comment_lastcollapsed'] = true;