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:
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```