other useless quibbles.

This commit is contained in:
fiatjaf
2025-09-23 12:29:55 -03:00
parent 5727c1e477
commit 8b8693f4bf
4 changed files with 5 additions and 5 deletions

View File

@@ -64,9 +64,9 @@ func main() {
relay.RejectEvent = append(relay.RejectEvent,
// built-in policies
policies.ValidateKind,
policies.RejectUnprefixedNostrReferences,
// define your own policies
policies.PreventLargeTags(100),
func(ctx context.Context, event *nostr.Event) (reject bool, msg string) {
if event.PubKey == nostr.MustPubKeyFromHex("fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52") {
return true, "we don't allow this person to write here"