From 8de5608976dc8a73a400267601acb4c8e127de5a Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 16 Jan 2025 18:33:18 +0000 Subject: note privacy and summary stuff --- templates/note.php | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'templates/note.php') diff --git a/templates/note.php b/templates/note.php index 0a19475..0de2168 100644 --- a/templates/note.php +++ b/templates/note.php @@ -1,5 +1,6 @@ + ' . match ($note->privacy->scope) { + NotePrivacyScope::NONE => 'lock', + NotePrivacyScope::MUTUALS => 'group', + NotePrivacyScope::FOLLOWERS => 'groups', + NotePrivacyScope::PUBLIC => 'public' + } ?> inReplyTo)): ?> -
- - reply - ' . $note->inReplyTo->author->displayName) . '' ?> - +
+ + reply + ' . $note->inReplyTo->author->displayName) . '' ?> +
- getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?> + summary)): ?> +
+ summary) ?> + + getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?> + summary)): ?> +
+