diff --git a/relay/handlers/kinds/kind0.go b/relay/handlers/kinds/kind0.go index 8fd6401..ad8ffb1 100644 --- a/relay/handlers/kinds/kind0.go +++ b/relay/handlers/kinds/kind0.go @@ -22,7 +22,6 @@ func HandleKind0(ctx context.Context, evt relay.Event, collection *mongo.Collect if err != mongo.ErrNoDocuments { if existingEvent.CreatedAt >= evt.CreatedAt { - response.SendNotice(ws, evt.PubKey, "blocked: a newer kind 0 event already exists for this pubkey") response.SendOK(ws, evt.ID, false, "blocked: a newer kind 0 event already exists for this pubkey") return nil } diff --git a/relay/handlers/kinds/kind2.go b/relay/handlers/kinds/kind2.go index a8c2869..c626e97 100644 --- a/relay/handlers/kinds/kind2.go +++ b/relay/handlers/kinds/kind2.go @@ -9,8 +9,6 @@ import ( ) func HandleKind2(ctx context.Context, evt relay.Event, ws *websocket.Conn) error { - // Send a NOTICE message to inform the client about the deprecation - response.SendNotice(ws, evt.PubKey, "kind 2 is deprecated, event not accepted to the relay, please use kind 10002 as defined in NIP-65") // Send an OK message to indicate the event was not accepted response.SendOK(ws, evt.ID, false, "invalid: kind 2 is deprecated, use kind 10002 (NIP65)") diff --git a/relay/handlers/kinds/replaceable.go b/relay/handlers/kinds/replaceable.go index e07bf54..1a6e810 100644 --- a/relay/handlers/kinds/replaceable.go +++ b/relay/handlers/kinds/replaceable.go @@ -22,7 +22,6 @@ func HandleReplaceableKind(ctx context.Context, evt relay.Event, collection *mon if err != mongo.ErrNoDocuments { if existingEvent.CreatedAt > evt.CreatedAt || (existingEvent.CreatedAt == evt.CreatedAt && existingEvent.ID < evt.ID) { - response.SendNotice(ws, evt.PubKey, "blocked: relay already has a newer event of the same kind with this pubkey") response.SendOK(ws, evt.ID, false, "blocked: relay already has a newer event of the same kind with this pubkey") return nil } diff --git a/relay/handlers/kinds/replaceableParameters.go b/relay/handlers/kinds/replaceableParameters.go index 1b4c7c5..72ec25c 100644 --- a/relay/handlers/kinds/replaceableParameters.go +++ b/relay/handlers/kinds/replaceableParameters.go @@ -29,7 +29,6 @@ func HandleParameterizedReplaceableKind(ctx context.Context, evt relay.Event, co if err != mongo.ErrNoDocuments { if existingEvent.CreatedAt > evt.CreatedAt || (existingEvent.CreatedAt == evt.CreatedAt && existingEvent.ID < evt.ID) { - response.SendNotice(ws, evt.PubKey, "blocked: relay already has a newer event for this pubkey and d tag") response.SendOK(ws, evt.ID, false, "blocked: relay already has a newer event for this pubkey and d tag") return nil }