fix(policies): update check for ephemeral kinds

The Event.IsEphemeral method has been removed from go-nostr
This commit is contained in:
Anthony Accioly
2024-11-05 17:32:56 +00:00
parent 2a80d4099d
commit 553d848362

View File

@@ -72,7 +72,7 @@ func RestrictToSpecifiedKinds(allowEphemeral bool, kinds ...uint16) func(context
slices.Sort(kinds)
return func(ctx context.Context, event *nostr.Event) (reject bool, msg string) {
if allowEphemeral && event.IsEphemeral() {
if allowEphemeral && nostr.IsEphemeralKind(event.Kind) {
return false, ""
}