add missing return when checking id.

This commit is contained in:
fiatjaf
2023-11-22 17:30:34 -03:00
parent 194ec994d7
commit 7a221cf9f0

View File

@@ -122,6 +122,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
id := hex.EncodeToString(hash[:])
if id != evt.ID {
ws.WriteJSON(nostr.OKEnvelope{EventID: evt.ID, OK: false, Reason: "invalid: id is computed incorrectly"})
return
}
// check signature