mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-08-08 09:12:30 +02:00
don't send a NOTICE when REQs are rejected anymore, just the CLOSED.
This commit is contained in:
@@ -29,7 +29,6 @@ func (rl *Relay) handleRequest(ctx context.Context, id string, eose *sync.WaitGr
|
||||
// filter we can just reject it)
|
||||
for _, reject := range rl.RejectFilter {
|
||||
if reject, msg := reject(ctx, filter); reject {
|
||||
ws.WriteJSON(nostr.NoticeEnvelope(msg))
|
||||
return errors.New(nostr.NormalizeOKMessage(msg, "blocked"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user