aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note.php
diff options
context:
space:
mode:
authorwinter2025-01-28 21:04:21 +0000
committerwinter2025-01-28 21:04:21 +0000
commit1af3a4e00ec63755a90109d8a63a1b6f6d95def6 (patch)
treebbc74811f49b8f83bea65d992143ca5b655fe97e /templates/note.php
parente591374bb4b7d231fadf99d2e278806e53971919 (diff)
alt text and open remote profile
Diffstat (limited to 'templates/note.php')
-rw-r--r--templates/note.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/note.php b/templates/note.php
index c69531b..f0f289c 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -82,7 +82,8 @@ if ($user != null) {
<?php foreach ($note->attachments as $attachment): ?>
<div>
<?php if (str_starts_with($attachment->type, 'image/')): ?>
- <img src="<?= $attachment->href ?>">
+ <img src="<?= $attachment->href ?>" alt="<?= $attachment->description ?? '' ?>"
+ title="<?= $attachment->description ?? '' ?>">
<?php else: ?>
<a class="file" href="<?= $attachment->href ?>" target="_blank">
<span class="material-symbols attach-file"></span>