upleb.uk

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

summaryrefslogtreecommitdiff
path: root/45.md
diff options
context:
space:
mode:
authorfiatjaf_ <fiatjaf@gmail.com>2023-12-06 12:01:27 -0300
committerGitHub <noreply@github.com>2023-12-06 12:01:27 -0300
commit2bd4bf784112aabff9d0fc2dd90fed9107aa5cde (patch)
treec11ffc54f6549f0f337cb75ddce6cd66f77bd449 /45.md
parentc07f0eab1a74c3de5666ce0d2245d40f90543a3d (diff)
`CLOSED` messages for relays that want to reject REQs and NIP-42 `AUTH` integration (#902)
Co-authored-by: monlovesmango <96307647+monlovesmango@users.noreply.github.com>
Diffstat (limited to '45.md')
-rw-r--r--45.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/45.md b/45.md
index 998b952..780dfb6 100644
--- a/45.md
+++ b/45.md
@@ -27,7 +27,9 @@ In case a relay uses probabilistic counts, it MAY indicate it in the response wi
27["COUNT", <subscription_id>, {"count": <integer>}] 27["COUNT", <subscription_id>, {"count": <integer>}]
28``` 28```
29 29
30## Examples: 30Whenever the relay decides to refuse to fulfill the `COUNT` request, it MUST return a `CLOSED` message.
31
32## Examples
31 33
32### Followers count 34### Followers count
33 35
@@ -49,3 +51,10 @@ In case a relay uses probabilistic counts, it MAY indicate it in the response wi
49["COUNT", <subscription_id>, {"kinds": [1]}] 51["COUNT", <subscription_id>, {"kinds": [1]}]
50["COUNT", <subscription_id>, {"count": 93412452, "approximate": true}] 52["COUNT", <subscription_id>, {"count": 93412452, "approximate": true}]
51``` 53```
54
55### Relay refuses to count
56
57```
58["COUNT", <subscription_id>, {"kinds": [4], "authors": [<pubkey>], "#p": [<pubkey>]}]
59["CLOSED", <subscription_id>, "auth-required: cannot count other people's DMs"]
60```