From 8fc56f62bad41a30060b527ee2707c07946e0edf Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 27 Jan 2025 21:28:29 +0000 Subject: prevent deleting remote notes --- templates/note.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/note.php') 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(); ?> - author == $user?->actor || $user?->isAdmin): ?> + author->isLocal && ($note->author == $user?->actor || $user?->isAdmin)): ?>