diff options
| author | winter | 2025-03-10 21:00:46 +0000 |
|---|---|---|
| committer | winter | 2025-03-10 21:00:46 +0000 |
| commit | db29e3c45d9f6c815b077bdb48a6247be086ff4b (patch) | |
| tree | 33345025db0bdc4572f101144f7370b2df556921 /templates/reply_button.php | |
| parent | 1685f4f0caa3c64b4919b7005950aa4ee8d4fc29 (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
Diffstat (limited to 'templates/reply_button.php')
| -rw-r--r-- | templates/reply_button.php | 4 |
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"> |
