upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2022-08-14 20:22:16 -0300
committerGitHub <noreply@github.com>2022-08-14 20:22:16 -0300
commit56cc238a4159c5b52c0b4f0edabcd3a189134dbc (patch)
treeaf8c0921219379ae9fa1b9af3a377fadaf825db2
parenta6ad8b9a13b220a1aa74c0df9fd2a832544a81ec (diff)
text fixes.26-relays-list
Co-authored-by: Leo Wandersleb <leo@leowandersleb.de>
-rw-r--r--23.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/23.md b/23.md
index f750ff9..f9ef557 100644
--- a/23.md
+++ b/23.md
@@ -16,7 +16,9 @@ The _read_ condition consists of a string containing a rule that follows a subse
16 16
17The `read` rule operates on the values of the [NIP-01](01.md) **filter** object, while the `write` rule operates on the values of the **event** object. 17The `read` rule operates on the values of the [NIP-01](01.md) **filter** object, while the `write` rule operates on the values of the **event** object.
18 18
19When a `read` rule evaluates to `true` for a given **filter** the client SHOULD send a `REQ` message to the relay, otherwise it SHOULD NOT. When a `write` rule evaluates to `true` for a given **event** the client SHOULD send that event (in a `EVENT` message) to the relay, otherwise it MUST NOT. 19When a `read` rule evaluates to `false` for a given **filter** the client SHOULD NOT send that filter in a `REQ` message to that relay.
20
21When a `write` rule evaluates to `false` for a given **event** the client SHOULD NOT send that event in an `EVENT` message to that relay.
20 22
21When a rule is malformed or the client is unable to parse it for any reason (for example, for not having implemented all the operators) it SHOULD treat it as `true` if it is a _read_ rule and `false` if it is a _write_ rule. 23When a rule is malformed or the client is unable to parse it for any reason (for example, for not having implemented all the operators) it SHOULD treat it as `true` if it is a _read_ rule and `false` if it is a _write_ rule.
22 24