From 30c99a035fa0117cf996297327bd7fdca410b641 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 18 Nov 2023 10:44:48 -0300 Subject: [PATCH] add restricted_writes. --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 8e38e16..25d107e 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( "github.com/fiatjaf/khatru/plugins" "github.com/kelseyhightower/envconfig" "github.com/nbd-wtf/go-nostr" + "github.com/nbd-wtf/go-nostr/nip11" "github.com/rs/zerolog" ) @@ -54,6 +55,9 @@ func main() { relay.Info.Description = s.RelayDescription relay.Info.Contact = s.RelayContact relay.Info.Icon = s.RelayIcon + relay.Info.Limitation = &nip11.RelayLimitationDocument{ + RestrictedWrites: true, + } relay.StoreEvent = append(relay.StoreEvent, db.SaveEvent) relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents)