diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2024-01-21 16:08:45 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2024-01-21 16:08:45 -0300 |
| commit | d0812229a5569372a6cd1bdb8d148beb1820585d (patch) | |
| tree | bd6f065a735d7b738380813238de697c22c95c36 /72.md | |
| parent | c766f8892b46b26a91ac1e570cb605a8074b78b2 (diff) | |
use jsonc in some places.
Diffstat (limited to '72.md')
| -rw-r--r-- | 72.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -12,7 +12,7 @@ The goal of this NIP is to create moderator-approved public communities around a | |||
| 12 | 12 | ||
| 13 | `kind:34550` SHOULD include any field that helps define the community and the set of moderators. `relay` tags MAY be used to describe the preferred relay to download requests and approvals. | 13 | `kind:34550` SHOULD include any field that helps define the community and the set of moderators. `relay` tags MAY be used to describe the preferred relay to download requests and approvals. |
| 14 | 14 | ||
| 15 | ```json | 15 | ```jsonc |
| 16 | { | 16 | { |
| 17 | "created_at": <Unix timestamp in seconds>, | 17 | "created_at": <Unix timestamp in seconds>, |
| 18 | "kind": 34550, | 18 | "kind": 34550, |
| @@ -42,14 +42,14 @@ The goal of this NIP is to create moderator-approved public communities around a | |||
| 42 | 42 | ||
| 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. | 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. |
| 44 | 44 | ||
| 45 | ```json | 45 | ```jsonc |
| 46 | { | 46 | { |
| 47 | "kind": 1, | 47 | "kind": 1, |
| 48 | "tags": [ | 48 | "tags": [ |
| 49 | ["a", "34550:<community event author pubkey>:<community-d-identifier>", "<optional-relay-url>"], | 49 | ["a", "34550:<community event author pubkey>:<community-d-identifier>", "<optional-relay-url>"], |
| 50 | ], | 50 | ], |
| 51 | "content": "hello world", | 51 | "content": "hello world", |
| 52 | ... | 52 | // ... |
| 53 | } | 53 | } |
| 54 | ``` | 54 | ``` |
| 55 | 55 | ||
| @@ -59,7 +59,7 @@ Community management clients MAY filter all mentions to a given `kind:34550` eve | |||
| 59 | 59 | ||
| 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. | 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. |
| 61 | 61 | ||
| 62 | ```json | 62 | ```jsonc |
| 63 | { | 63 | { |
| 64 | "pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>", | 64 | "pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>", |
| 65 | "kind": 4550, | 65 | "kind": 4550, |
| @@ -70,7 +70,7 @@ The post-approval event MUST include `a` tags of the communities the moderator i | |||
| 70 | ["k", "<post-request-kind>"] | 70 | ["k", "<post-request-kind>"] |
| 71 | ], | 71 | ], |
| 72 | "content": "<the full approved event, JSON-encoded>", | 72 | "content": "<the full approved event, JSON-encoded>", |
| 73 | ... | 73 | // ... |
| 74 | } | 74 | } |
| 75 | ``` | 75 | ``` |
| 76 | 76 | ||