From 6b58bf53e312a67119289b894c5b482d057e5665 Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 26 Jan 2025 21:53:26 +0000 Subject: make mentions work properly + ui for them --- templates/note.php | 13 ++++++++++++- templates/notification.php | 2 +- templates/reply_form.php | 14 ++++++++++++++ templates/user_mention_pill.php | 31 +++++++++++++++++++++++++++++++ templates/write_note_form.php | 4 ++++ 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 templates/user_mention_pill.php (limited to 'templates') diff --git a/templates/note.php b/templates/note.php index d892656..e5c2942 100644 --- a/templates/note.php +++ b/templates/note.php @@ -1,4 +1,5 @@ inReplyTo)): ?>
+ - ' . htmlspecialchars($note->inReplyTo->author->displayName)) . '' ?>
+ mentions) > 0): ?> +
+ + + '' . $m->displayName . '', + $note->mentions + ))) ?> + +
diff --git a/templates/notification.php b/templates/notification.php index a23a3a6..d787f5e 100644 --- a/templates/notification.php +++ b/templates/notification.php @@ -20,7 +20,7 @@
- +
+ + +