Skip to content

Commit

Permalink
Merge pull request #77 from bitvora/dev-0.1.14
Browse files Browse the repository at this point in the history
remove kind 4 support
  • Loading branch information
barrydeen authored Oct 16, 2024
2 parents 17209ce + 972b62b commit 89bef01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""
})

Expand Down

0 comments on commit 89bef01

Please sign in to comment.