Skip to content

Commit

Permalink
add kind 9022 for leave request
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr-safari authored and fiatjaf committed Aug 18, 2024
1 parent 0551017 commit 62ac522
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 29.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ Any user can send one of these events to the relay in order to be automatically
}
```

- *leave request* (`kind:9022`)

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.

```js
{
"kind": 9022,
"content": "optional reason",
"tags": [
["h", "<group-id>"]
]
}
```

- *moderation events* (`kinds:9000-9020`) (optional)

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.
Expand Down

0 comments on commit 62ac522

Please # to comment.