From 4e490879b558e7c622ec01822ca447fc6fc2fde2 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 9 Mar 2026 22:37:26 -0300 Subject: [PATCH] khatru/policies: accept deletions even when they're not protected. --- khatru/policies/events.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/khatru/policies/events.go b/khatru/policies/events.go index 56f35bc..61acbfb 100644 --- a/khatru/policies/events.go +++ b/khatru/policies/events.go @@ -111,6 +111,9 @@ func RejectEventsWithBase64Media(ctx context.Context, evt nostr.Event) (bool, st } func OnlyAllowNIP70ProtectedEvents(ctx context.Context, event nostr.Event) (reject bool, msg string) { + if event.Kind == 5 { + return false, "" + } if nip70.IsProtected(event) { return false, "" }