mirror of
https://github.com/aljazceru/khatru.git
synced 2026-02-22 05:04:23 +01:00
fix missing ! in CheckID()
This commit is contained in:
@@ -127,7 +127,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
|
||||
switch env := envelope.(type) {
|
||||
case *nostr.EventEnvelope:
|
||||
// check id
|
||||
if env.Event.CheckID() {
|
||||
if !env.Event.CheckID() {
|
||||
ws.WriteJSON(nostr.OKEnvelope{EventID: env.Event.ID, OK: false, Reason: "invalid: id is computed incorrectly"})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user