aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/reply_button.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reply_button.php')
-rw-r--r--templates/reply_button.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/reply_button.php b/templates/reply_button.php
index aeaeabd..4162d23 100644
--- a/templates/reply_button.php
+++ b/templates/reply_button.php
@@ -1,9 +1,9 @@
<?php
use Digitigrade\Model\Note;
-$icon = count(Note::findAllInThread($note, 2)) > 1 ? 'reply_all' : 'reply';
-$id = "interactButton-reply-$note->id"
- ?>
+$icon = $note->countReplies() > 0 ? 'reply_all' : 'reply';
+$id = "interactButton-reply-$note->id";
+?>
<div class="interactButtonContainer reply">
<button title="<?= __('note.action.reply') ?>" class="icon material-symbols-outlined reply" id="<?= $id ?>"
_="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active on closest <div/>"><?= $icon ?></button>