diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2026-03-30 08:58:57 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2026-03-30 08:59:01 -0300 |
| commit | e0818bbe442dd902ff1959831000d72a1ef09427 (patch) | |
| tree | 24f3affce46782acf5e80b01b397bd62d589c096 | |
| parent | 2a77e2fdda188779f5420954ad6ff396b4578ce5 (diff) | |
nip29: match flotilla style "edit-metadata" (PUT, not PATCH).
because hodlbod controls nostr
| -rw-r--r-- | 29.md | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -112,15 +112,15 @@ Clients can send these events to a relay in order to accomplish a moderation act | |||
| 112 | 112 | ||
| 113 | Each moderation action uses a different kind and requires different arguments, which are given as tags. These are defined in the following table: | 113 | Each moderation action uses a different kind and requires different arguments, which are given as tags. These are defined in the following table: |
| 114 | 114 | ||
| 115 | | kind | name | tags | | 115 | | kind | name | tags | |
| 116 | | --- | --- | --- | | 116 | | --- | --- | --- | |
| 117 | | 9000 | `put-user` | `p` with pubkey hex and optional roles | | 117 | | 9000 | `put-user` | `p` with pubkey hex and optional roles | |
| 118 | | 9001 | `remove-user` | `p` with pubkey hex | | 118 | | 9001 | `remove-user` | `p` with pubkey hex | |
| 119 | | 9002 | `edit-metadata` | fields to be modified, and optionally `unrestricted`, `open`, `visible` `public` | | 119 | | 9002 | `edit-metadata` | all the fields of *group-metadata* | |
| 120 | | 9005 | `delete-event` | `e` with event id hex | | 120 | | 9005 | `delete-event` | `e` with event id hex | |
| 121 | | 9007 | `create-group` | | | 121 | | 9007 | `create-group` | | |
| 122 | | 9008 | `delete-group` | | | 122 | | 9008 | `delete-group` | | |
| 123 | | 9009 | `create-invite` | arbitrary `code` | | 123 | | 9009 | `create-invite` | arbitrary `code` | |
| 124 | 124 | ||
| 125 | It's expected that the group state (of who is an allowed member or not, who is an admin and with which permission or not, what are the group name and picture etc) can be fully reconstructed from the canonical sequence of these events. | 125 | It's expected that the group state (of who is an allowed member or not, who is an admin and with which permission or not, what are the group name and picture etc) can be fully reconstructed from the canonical sequence of these events. |
| 126 | 126 | ||