From 27c2a1df69001f979ad9ed5ffbac06fc106b9e30 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 6 Feb 2025 20:54:52 +0000 Subject: allow writing alt text on image attachments --- templates/attachment_pill.php | 22 ++++++++++++++++++++++ templates/note.php | 6 +++--- 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/attachment_pill.php b/templates/attachment_pill.php index 76fc590..6fff74d 100644 --- a/templates/attachment_pill.php +++ b/templates/attachment_pill.php @@ -16,7 +16,29 @@ $type ??= 'add'; + + + +
+
+ + +
+ + +
+ + +
+
+ +
+
+ \ No newline at end of file diff --git a/templates/note.php b/templates/note.php index f9eef45..b43e63e 100644 --- a/templates/note.php +++ b/templates/note.php @@ -79,12 +79,12 @@ if ($user != null) { attachments as $attachment): ?>
type, 'image/')): ?> - <?= $attachment->description ?? '' ?> + <?= htmlspecialchars($attachment->description ?? '') ?> - description ?? basename($attachment->href) ?> + description ?? basename($attachment->href)) ?>
-- cgit v1.3