From 68b0caf2ab41a59e0644e9b2b200b422bd51c8ff Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 19 Jul 2025 11:51:44 -0300 Subject: [PATCH] khatru: improve ephemeral ok message when handled internally. --- khatru/handlers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/khatru/handlers.go b/khatru/handlers.go index 0b349be..a9a7e10 100644 --- a/khatru/handlers.go +++ b/khatru/handlers.go @@ -229,7 +229,11 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { ok = false reason = "mute: no one was listening for this" } else { - reason = "broadcasted to " + strconv.Itoa(n) + " listeners" + if nil == rl.OnEphemeralEvent { + reason = "broadcasted to " + strconv.Itoa(n) + } else { + reason += "handled internally" + } } } }