From 972b62b8239f601e0de3f6e24df6df8d19339464 Mon Sep 17 00:00:00 2001 From: Barry Deen Date: Wed, 16 Oct 2024 19:56:53 -0400 Subject: [PATCH] remove kind 4 support --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d3e4a56..77f5efc 100644 --- a/main.go +++ b/main.go @@ -115,8 +115,12 @@ func main() { relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent) relay.RejectEvent = append(relay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) { if !trustNetworkMap[event.PubKey] { - return true, "you are not in the web of trust" + return true, "we are rebuilding the trust network, please try again later" } + if event.Kind == nostr.KindEncryptedDirectMessage { + return true, "only gift wrapped DMs are allowed" + } + return false, "" })