From 4e2b921af9f71dcce30440006a7d960a2154cc78 Mon Sep 17 00:00:00 2001 From: Barry Deen Date: Sun, 25 Aug 2024 09:42:17 -0400 Subject: [PATCH] fix typo in nip42 docs --- docs/cookbook/auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook/auth.md b/docs/cookbook/auth.md index b7cfceb..2e64c30 100644 --- a/docs/cookbook/auth.md +++ b/docs/cookbook/auth.md @@ -30,7 +30,7 @@ If on `RejectFilter` or `RejectEvent` you prefix the message with `auth-required relay.RejectFilter = append(relay.RejectFilter, func(ctx context.Context, filter nostr.Filter) (bool, string) { return true, "auth-required: this query requires you to be authenticated" }) -relay.RejectEvent = append(relay.RejectFilter, func(ctx context.Context, event *nostr.Event) (bool, string) { +relay.RejectEvent = append(relay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) { return true, "auth-required: publishing this event requires authentication" }) ```