other useless quibbles.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user