aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-03-10 21:00:46 +0000
committerwinter2025-03-10 21:00:46 +0000
commitdb29e3c45d9f6c815b077bdb48a6247be086ff4b (patch)
tree33345025db0bdc4572f101144f7370b2df556921
parent1685f4f0caa3c64b4919b7005950aa4ee8d4fc29 (diff)
change reply button appearance behaviour
now it becomes 'reply-all' if the note is in reply to something, rather than if it has replies
-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">