grain/relay/handlers/kinds/kind2.go

14 lines
332 B
Go
Raw Normal View History

2024-07-24 20:54:11 +00:00
package kinds
import (
"context"
relay "grain/relay/types"
"golang.org/x/net/websocket"
)
2024-07-25 03:04:26 +00:00
2024-07-24 20:54:11 +00:00
func HandleKind2Deprecated(ctx context.Context, evt relay.Event, ws *websocket.Conn) error {
2024-07-25 03:04:26 +00:00
SendNotice(ws, evt.PubKey, "kind 2 is deprecated, event not accepted to the relay, please use kind 10002 as defined in NIP-65")
2024-07-24 20:54:11 +00:00
return nil
2024-07-25 03:04:26 +00:00
}