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 ++++++++++++++++++++++++++-------
templates/reply_form.php | 5 +++++
templates/write_note_form.php | 13 +++++++++++++
3 files changed, 44 insertions(+), 7 deletions(-)
(limited to 'templates')
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
- = sprintf(__('note.info.replyTo'),
- '' . $note->inReplyTo->author->displayName) . '' ?>
-
+
- = $note->getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?>
+ summary)): ?>
+
+ = htmlspecialchars($note->summary) ?>
+
+ = $note->getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?>
+ summary)): ?>
+
+
id ?>">= __('writeReply.label') ?>
+
+
+ summary" : '' ?>">
+
diff --git a/templates/write_note_form.php b/templates/write_note_form.php
index c28dc12..b74de69 100644
--- a/templates/write_note_form.php
+++ b/templates/write_note_form.php
@@ -4,6 +4,19 @@
+
+
+
+
+
+
+
+
--
cgit v1.3