mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
edit-group-status permission.
This commit is contained in:
parent
50db74f93a
commit
7e7ddea055
24
29.md
24
29.md
|
@ -99,14 +99,15 @@ Clients can send these events to a relay in order to accomplish a moderation act
|
||||||
|
|
||||||
Each moderation action uses a different kind and requires different arguments, which are given as tags. These are defined in the following table:
|
Each moderation action uses a different kind and requires different arguments, which are given as tags. These are defined in the following table:
|
||||||
|
|
||||||
| kind | name | tags |
|
| kind | name | tags |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| 9000 | `add-user` | `p` (pubkey hex) |
|
| 9000 | `add-user` | `p` (pubkey hex) |
|
||||||
| 9001 | `remove-user` | `p` (pubkey hex) |
|
| 9001 | `remove-user` | `p` (pubkey hex) |
|
||||||
| 9002 | `edit-metadata` | `name`, `about`, `picture` (string) |
|
| 9002 | `edit-metadata` | `name`, `about`, `picture` (string) |
|
||||||
| 9003 | `add-permission` | `p` (pubkey), `permission` (name) |
|
| 9003 | `add-permission` | `p` (pubkey), `permission` (name) |
|
||||||
| 9004 | `remove-permission` | `p` (pubkey), `permission` (name) |
|
| 9004 | `remove-permission` | `p` (pubkey), `permission` (name) |
|
||||||
| 9005 | `delete-event` | `e` (id hex) |
|
| 9005 | `delete-event` | `e` (id hex) |
|
||||||
|
| 9006 | `edit-group-status` | `public`, `open`, `private`, `closed` |
|
||||||
|
|
||||||
- *group metadata* (`kind:39000`) (optional)
|
- *group metadata* (`kind:39000`) (optional)
|
||||||
|
|
||||||
|
@ -123,14 +124,14 @@ If the group is forked and hosted in multiple relays, there will be multiple ver
|
||||||
["name", "Pizza Lovers"],
|
["name", "Pizza Lovers"],
|
||||||
["picture", "https://pizza.com/pizza.png"],
|
["picture", "https://pizza.com/pizza.png"],
|
||||||
["about", "a group for people who love pizza"],
|
["about", "a group for people who love pizza"],
|
||||||
["public"],
|
["public"], // or ["private"]
|
||||||
["open"]
|
["open"] // or ["closed"]
|
||||||
]
|
]
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone. `open` signals that anyone can request to join and the request will be automatically granted.
|
`name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled.
|
||||||
|
|
||||||
The [NIP-19](19.md) `naddr` pointer for this event including with a mandatory relay can be used as the canonical group identifier.
|
The [NIP-19](19.md) `naddr` pointer for this event including with a mandatory relay can be used as the canonical group identifier.
|
||||||
|
|
||||||
|
@ -148,6 +149,7 @@ The list of capabilities, as defined by this NIP, for now, is the following:
|
||||||
- `remove-user`
|
- `remove-user`
|
||||||
- `add-permission`
|
- `add-permission`
|
||||||
- `remove-permission`
|
- `remove-permission`
|
||||||
|
- `edit-group-status`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user