Merge pull request #77 from bitvora/dev-0.1.14

remove kind 4 support
This commit is contained in:
Barry Deen 2024-10-16 19:57:21 -04:00 committed by GitHub
commit 89bef01c48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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, ""
})