mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-05-23 02:22:02 +00:00
commit
89bef01c48
6
main.go
6
main.go
@ -115,8 +115,12 @@ func main() {
|
|||||||
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
|
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
|
||||||
relay.RejectEvent = append(relay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) {
|
relay.RejectEvent = append(relay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) {
|
||||||
if !trustNetworkMap[event.PubKey] {
|
if !trustNetworkMap[event.PubKey] {
|
||||||
return true, "you are not in the web of trust"
|
return true, "we are rebuilding the trust network, please try again later"
|
||||||
}
|
}
|
||||||
|
if event.Kind == nostr.KindEncryptedDirectMessage {
|
||||||
|
return true, "only gift wrapped DMs are allowed"
|
||||||
|
}
|
||||||
|
|
||||||
return false, ""
|
return false, ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user