mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-04-19 18:31:18 +00:00
add restricted_writes.
This commit is contained in:
parent
cdedf15aa5
commit
30c99a035f
4
main.go
4
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user