aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--templates/reply_button.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/reply_button.php b/templates/reply_button.php
index af36000..dadc121 100644
--- a/templates/reply_button.php
+++ b/templates/reply_button.php
@@ -1,7 +1,9 @@
<?php
use Digitigrade\Model\Note;
-$icon = $note->countReplies() > 0 ? 'reply-all' : 'reply';
+/** @var Note $note */
+
+$icon = $note->inReplyTo == null ? 'reply' : 'reply-all';
$id = "interactButton-reply-$note->id";
?>
<div class="interactButtonContainer reply">