aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorwinter2025-01-27 21:28:29 +0000
committerwinter2025-01-27 21:28:29 +0000
commit8fc56f62bad41a30060b527ee2707c07946e0edf (patch)
treec02bdcf467aafc8c281f9ce2c4703f56ea54de30 /templates
parent953464284df0b6c05a8a9b61dd66befa64181083 (diff)
prevent deleting remote notes
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"