Add room creation permission event to nip 29
This commit is contained in:
parent
b516adbf42
commit
5d9096c005
19
29.md
19
29.md
|
@ -223,6 +223,25 @@ The process through which the relay decides what roles to support and how to han
|
|||
}
|
||||
```
|
||||
|
||||
- *room creation permission* (`kind:39004`) (optional)
|
||||
|
||||
Defines who can create new rooms on the relay. This event MUST be signed by the pubkey specified in the `self` field of the relay's [NIP 11](./11.md) document.
|
||||
|
||||
A `p` tag must be included for every user with permission to create a new room. If this event does not exist, it should be assumed that anyone can create a room.
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"kind": 39004,
|
||||
"content": "list of people who can create rooms on this relay",
|
||||
"tags": [
|
||||
["-"],
|
||||
["p", "<pubkey1-as-hex>"],
|
||||
["p", "<pubkey2-as-hex>"],
|
||||
],
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
## Implementation quirks
|
||||
|
||||
### Checking your own membership in a group
|
||||
|
|
Loading…
Reference in New Issue