diff options
| author | sepehr-safari <safari.sepehr@gmail.com> | 2024-08-18 14:57:50 +0330 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2024-08-18 15:01:00 -0300 |
| commit | 62ac522333d374f9c8bab95f08413f13cf648038 (patch) | |
| tree | 20e4a9b17ef1212c689f77658571a63df2c546f5 | |
| parent | 055101786bb4570f00a14f347c22545833922414 (diff) | |
add kind 9022 for leave request
| -rw-r--r-- | 29.md | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -93,6 +93,20 @@ Any user can send one of these events to the relay in order to be automatically | |||
| 93 | } | 93 | } |
| 94 | ``` | 94 | ``` |
| 95 | 95 | ||
| 96 | - *leave request* (`kind:9022`) | ||
| 97 | |||
| 98 | Any user can send one of these events to the relay in order to be automatically removed from the group. The relay will automatically issue a `kind:9001` in response removing this user. | ||
| 99 | |||
| 100 | ```js | ||
| 101 | { | ||
| 102 | "kind": 9022, | ||
| 103 | "content": "optional reason", | ||
| 104 | "tags": [ | ||
| 105 | ["h", "<group-id>"] | ||
| 106 | ] | ||
| 107 | } | ||
| 108 | ``` | ||
| 109 | |||
| 96 | - *moderation events* (`kinds:9000-9020`) (optional) | 110 | - *moderation events* (`kinds:9000-9020`) (optional) |
| 97 | 111 | ||
| 98 | Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action. The relay may discard the event after taking action or keep it as a moderation log. | 112 | Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action. The relay may discard the event after taking action or keep it as a moderation log. |