remove kind 4 support

This commit is contained in:
Barry Deen 2024-10-16 19:56:53 -04:00
parent 17209ceb2d
commit 972b62b823

View File

@ -115,8 +115,12 @@ func main() {
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
relay.RejectEvent = append(relay.RejectEvent, func(ctx context.Context, event *nostr.Event) (bool, string) {
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, ""
})