summaryrefslogtreecommitdiff
path: root/src/application/views/view_post.php
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-14 19:28:40 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-14 19:28:40 +0200
commitcc97f36b8c9a9522636d5b50fbcd2f52de06a01a (patch)
tree711486591d1ef8906b1bb0a8d6c2c86c9556553a /src/application/views/view_post.php
parentd8b74761c6cefdd83360d3f2add0e9ccdc6064c7 (diff)
Add warning for logged out users when clicking attachment
Diffstat (limited to 'src/application/views/view_post.php')
-rw-r--r--src/application/views/view_post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/application/views/view_post.php b/src/application/views/view_post.php
index 26eec62..a7624ae 100644
--- a/src/application/views/view_post.php
+++ b/src/application/views/view_post.php
@@ -101,7 +101,7 @@ $your_are_the_author = $GLOBALS["currentUser"]?->id === $postAuthor?->id;
<img class="image-attachment-image" src="?_action=thumb&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>" alt="" width="100">
</span>
<?php else: ?>
- <a class="image-attachment" href="?_action=attachment&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>" title="<?= htmlentities($attachment->name) ?>">
+ <a class="image-attachment attachment" href="?_action=attachment&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>" title="<?= htmlentities($attachment->name) ?>">
<img class="image-attachment-image" src="?_action=thumb&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>" alt="" width="100">
</a>
<?php endif; ?>
@@ -116,7 +116,7 @@ $your_are_the_author = $GLOBALS["currentUser"]?->id === $postAuthor?->id;
<?php if ($hide_actions): ?>
<button class="btn btn-default"><?= htmlentities($attachment->name) ?></button>
<?php else: ?>
- <a class="btn btn-default" href="?_action=attachment&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>"><?= htmlentities($attachment->name) ?></a>
+ <a class="btn btn-default attachment" href="?_action=attachment&amp;attachment=<?= htmlentities(urlencode($attachment->id)) ?>"><?= htmlentities($attachment->name) ?></a>
<?php endif; ?>
<?php endforeach; ?>
</div>