aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/note.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/note.php b/templates/note.php
index 74ce566..4d05554 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -99,7 +99,7 @@ if ($user != null) {
global $note;
$user = UserAccount::findByCurrentSession();
?>
- <?php if ($note->author == $user?->actor || $user?->isAdmin): ?>
+ <?php if ($note->author->isLocal && ($note->author == $user?->actor || $user?->isAdmin)): ?>
<li>
<button hx-delete="/fragment/note/<?= $note->id ?>"
hx-confirm="<?= __('note.action.delete.confirmation') ?>" hx-target="closest .note"