Skip to content

Commit 034902c

Browse files
committed
if there is an ephemeral hook the relay is never mute.
fixes #53
1 parent 5705647 commit 034902c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
240240

241241
// the number of notified listeners matters in ephemeral events
242242
if nostr.IsEphemeralKind(env.Event.Kind) {
243-
if n == 0 {
243+
if n == 0 && len(rl.OnEphemeralEvent) == 0 {
244244
ok = false
245245
reason = "mute: no one was listening for this"
246246
} else {

0 commit comments

Comments
 (0)