diff --git a/main.go b/main.go index 36adc30..8fa93d6 100644 --- a/main.go +++ b/main.go @@ -102,6 +102,12 @@ func main() { policies.ValidateKind, policies.PreventTimestampsInThePast(600), policies.PreventTimestampsInTheFuture(60), + func(ctx context.Context, event *nostr.Event) (reject bool, msg string) { + if event.Kind == 20001 { + return true, "kind 20001 events are not allowed" + } + return false, "" + }, ) policies.ApplySaneDefaults(relay)