diff options
Diffstat (limited to '45.md')
| -rw-r--r-- | 45.md | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -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: | 30 | Whenever 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 | ``` | ||