diff --git a/go.mod b/go.mod index 7c2eb50..4eb8ac7 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.21.6 require ( github.com/fiatjaf/eventstore v0.4.2 - github.com/fiatjaf/khatru v0.4.2 + github.com/fiatjaf/khatru v0.5.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/nbd-wtf/go-nostr v0.30.0 github.com/nbd-wtf/nostr-sdk v0.1.0 diff --git a/main.go b/main.go index f3f1574..48ac05d 100644 --- a/main.go +++ b/main.go @@ -69,6 +69,8 @@ func main() { RestrictedWrites: true, } + policies.ApplySaneDefaults(relay) + relay.StoreEvent = append(relay.StoreEvent, db.SaveEvent) relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents) relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)