This commit is contained in:
hodlbod 2025-10-08 14:41:43 +03:00 committed by GitHub
commit f8599fd6ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

19
29.md
View File

@ -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 ## Implementation quirks
### Checking your own membership in a group ### Checking your own membership in a group