khatru: PreventBroadcast() also gets passed the filter.

This commit is contained in:
fiatjaf
2025-10-30 16:30:34 -03:00
parent 20f06d9608
commit 13c44a4644
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ type Relay struct {
OnConnect func(ctx context.Context)
OnDisconnect func(ctx context.Context)
OverwriteRelayInformation func(ctx context.Context, r *http.Request, info nip11.RelayInformationDocument) nip11.RelayInformationDocument
PreventBroadcast func(ws *WebSocket, event nostr.Event) bool
PreventBroadcast func(ws *WebSocket, filter nostr.Filter, event nostr.Event) bool
// this can be ignored unless you know what you're doing
ChallengePrefix string