upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsepehr-safari <safari.sepehr@gmail.com>2024-08-18 14:57:50 +0330
committerfiatjaf_ <fiatjaf@gmail.com>2024-08-18 15:01:00 -0300
commit62ac522333d374f9c8bab95f08413f13cf648038 (patch)
tree20e4a9b17ef1212c689f77658571a63df2c546f5
parent055101786bb4570f00a14f347c22545833922414 (diff)
add kind 9022 for leave request
-rw-r--r--29.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/29.md b/29.md
index 7a599b5..c2b86f1 100644
--- a/29.md
+++ b/29.md
@@ -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
98Any 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
98Clients 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. 112Clients 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.