aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-01 17:05:00 +0000
committerMario <mario@mariovavti.com>2024-02-01 17:05:00 +0000
commitc41831aff900d40c89e57dc7c1260a7d3d98323f (patch)
tree24bc90d8f17705e4757ae631c00435990cae7ad5 /Zotlabs/Lib/ThreadItem.php
parent8515aa6966536c40f1a6c3e4cf0647401485f7d8 (diff)
downloadvolse-hubzilla-c41831aff900d40c89e57dc7c1260a7d3d98323f.tar.gz
volse-hubzilla-c41831aff900d40c89e57dc7c1260a7d3d98323f.tar.bz2
volse-hubzilla-c41831aff900d40c89e57dc7c1260a7d3d98323f.zip
fix conv_list template
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 016dc5d25..07cc88581 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -373,8 +373,8 @@ class ThreadItem {
if($conv->get_mode() === 'channel')
$viewthread = z_root() . '/channel/' . $owner_address . '?f=&mid=' . urlencode(gen_link_id($item['mid']));
- $comment_count_txt = sprintf(tt('%d Comment', '%d Comments', $total_children), $total_children);
- $list_unseen_txt = (($unseen_comments) ? sprintf(t('%d unseen'), $unseen_comments) : '');
+ $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();
@@ -501,7 +501,7 @@ class ThreadItem {
'comment_count' => $total_children,
'comment_count_txt' => $comment_count_txt,
'list_unseen_txt' => $list_unseen_txt,
- 'markseen' => t('Mark all seen'),
+ 'markseen' => t('Mark all comments seen'),
'responses' => $responses,
'my_responses' => $my_responses,
/*