Skip to content

Commit

Permalink
remove kind 4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydeen committed Oct 16, 2024
1 parent 17209ce commit 972b62b
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 972b62b

Please sign in to comment.