khatru: update docs again, now it seems to be mostly up to date.
This commit is contained in:
@@ -33,7 +33,7 @@ If on `OnRequest` or `OnEvent` you prefix the message with `auth-required: `, th
|
||||
relay.OnRequest = func(ctx context.Context, filter nostr.Filter) (bool, string) {
|
||||
return true, "auth-required: this query requires you to be authenticated"
|
||||
}
|
||||
relay.OnEvent = func(ctx context.Context, event *nostr.Event) (bool, string) {
|
||||
relay.OnEvent = func(ctx context.Context, event nostr.Event) (bool, string) {
|
||||
return true, "auth-required: publishing this event requires authentication"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user