diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-10-28 13:50:09 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:23:39 -0300 |
| commit | 7bac93607fbd0e5170c534d822df0a187e936853 (patch) | |
| tree | 854e76d4e81bb729a9ebcf1a855714b969cb9d95 | |
| parent | 2f403e1e958037b9b0f4e5533482035fc6c1422e (diff) | |
add more kinds.communities
| -rw-r--r-- | 72.md | 29 |
1 files changed, 14 insertions, 15 deletions
| @@ -14,7 +14,6 @@ The goal of this NIP is to create moderator-approved public communities around a | |||
| 14 | 14 | ||
| 15 | ```json | 15 | ```json |
| 16 | { | 16 | { |
| 17 | "created_at": <Unix timestamp in seconds>, | ||
| 18 | "kind": 34550, | 17 | "kind": 34550, |
| 19 | "tags": [ | 18 | "tags": [ |
| 20 | ["d", "<community-d-identifier>"], | 19 | ["d", "<community-d-identifier>"], |
| @@ -40,11 +39,23 @@ The goal of this NIP is to create moderator-approved public communities around a | |||
| 40 | 39 | ||
| 41 | # New Post Request | 40 | # New Post Request |
| 42 | 41 | ||
| 43 | Any Nostr event can be submitted to a community by anyone for approval. Clients MUST add the community's `a` tag to the new post event in order to be presented for the moderator's approval. | 42 | A "post request" is an event that can be published by anyone with the intention to be displayed inside a community. Moderators will be notified of this request and decide about approving it or not. Only after approval these posts will be displayed inside the communities. |
| 43 | |||
| 44 | Event kinds defined in other NIPs can be supported inside communities, but here we defined kind translations for them such that they don't get confused with events published outside communities. | ||
| 45 | |||
| 46 | | Community-scoped Kind | Description | Original Kind | Original NIP | | ||
| 47 | | --- | --- | --- | --- | | ||
| 48 | | 11 | Community post | 1 | 1 | | ||
| 49 | | 10500 | Community-scoped user metadata | 0 | 1 | | ||
| 50 | | 10501 | Community-scoped follow list | 3 | 2 | | ||
| 51 | | 4548 | Community file metadata | 1063 | 94 | | ||
| 52 | | 30500 | Community long-form article | 23 | 23 | | ||
| 53 | |||
| 54 | So, for example, in order to publish a "text note" (`kind:1`) inside a community one must use the `kind:11` instead. | ||
| 44 | 55 | ||
| 45 | ```json | 56 | ```json |
| 46 | { | 57 | { |
| 47 | "kind": 4549, | 58 | "kind": 11, |
| 48 | "tags": [ | 59 | "tags": [ |
| 49 | ["a", "34550:<community event author pubkey>:<community-d-identifier>", "<optional-relay-url>"], | 60 | ["a", "34550:<community event author pubkey>:<community-d-identifier>", "<optional-relay-url>"], |
| 50 | ], | 61 | ], |
| @@ -53,8 +64,6 @@ Any Nostr event can be submitted to a community by anyone for approval. Clients | |||
| 53 | } | 64 | } |
| 54 | ``` | 65 | ``` |
| 55 | 66 | ||
| 56 | Community management clients MAY filter all mentions to a given `kind:34550` event and request moderators to approve each submission. Moderators MAY delete his/her approval of a post at any time using event deletions (See [NIP-09](09.md)). | ||
| 57 | |||
| 58 | # Post Approval by moderators | 67 | # Post Approval by moderators |
| 59 | 68 | ||
| 60 | The post-approval event MUST include `a` tags of the communities the moderator is posting into (one or more), the `e` tag of the post and `p` tag of the author of the post (for approval notifications). The event SHOULD also include the stringified `post request` event inside the `.content` ([NIP-18-style](18.md)) and a `k` tag with the original post's event kind to allow filtering of approved posts by kind. | 69 | The post-approval event MUST include `a` tags of the communities the moderator is posting into (one or more), the `e` tag of the post and `p` tag of the author of the post (for approval notifications). The event SHOULD also include the stringified `post request` event inside the `.content` ([NIP-18-style](18.md)) and a `k` tag with the original post's event kind to allow filtering of approved posts by kind. |
| @@ -99,13 +108,3 @@ The following filter displays the approved posts. | |||
| 99 | ``` | 108 | ``` |
| 100 | 109 | ||
| 101 | Clients MAY hide approvals by blocked moderators at the user's request. | 110 | Clients MAY hide approvals by blocked moderators at the user's request. |
| 102 | |||
| 103 | # Other kinds of Community-scoped Events | ||
| 104 | |||
| 105 | Clients MAY decide to support multiple other kinds to be published for consumption only inside a specific community. These kinds follow the same structure defined for them in other NIPs, but with a different kind number: | ||
| 106 | |||
| 107 | | Community-scoped Kind | Original Kind | Original NIP | | ||
| 108 | | ----------------------- | --------------- | -------------- | | ||
| 109 | | 4549 | 1 | 1 | | ||
| 110 | | 30500 | 23 | 23 | | ||
| 111 | | 10500 | 0 | 1 | | ||