diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2023-06-13 10:34:34 -0400 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-08-08 13:27:32 -0300 |
| commit | bf84e733f3ad870ffd4516c6dfb60069997923be (patch) | |
| tree | 40b3b3410a9966e063f123b5aa374ec454258990 | |
| parent | 6fbe488504729b4da4231f55097a144d9bbaa4a7 (diff) | |
Adds preferred relay information to tags.
| -rw-r--r-- | 172.md | 16 |
1 files changed, 12 insertions, 4 deletions
| @@ -21,11 +21,19 @@ Kind 34550 should include any field that helps define the community and the set | |||
| 21 | "tags": [ | 21 | "tags": [ |
| 22 | ["d", "<community_name>"], | 22 | ["d", "<community_name>"], |
| 23 | ["description", "<community_description>"], | 23 | ["description", "<community_description>"], |
| 24 | ["image", "<communityimagen>", "WidthxHeight"] | ||
| 25 | |||
| 26 | //.. other tags relevant to defining the community | ||
| 24 | 27 | ||
| 25 | // moderators | 28 | // moderators |
| 26 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"] | 29 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"], |
| 27 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"] | 30 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"], |
| 28 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"] | 31 | ["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"], |
| 32 | |||
| 33 | // relays used by the community | ||
| 34 | ["relay", "<relay hosting author kind 0>", "author"], | ||
| 35 | ["relay", "<relay where to post requests to and fetch approvals from>"], | ||
| 36 | ["relay", "<relay where to post requests to and fetch approvals from>"] | ||
| 29 | ] | 37 | ] |
| 30 | } | 38 | } |
| 31 | ``` | 39 | ``` |
| @@ -51,7 +59,7 @@ Community management clients can filter all mentions of the kind-34550 event and | |||
| 51 | 59 | ||
| 52 | # Post Approval by moderators | 60 | # Post Approval by moderators |
| 53 | 61 | ||
| 54 | The post-approval event includes a stringified `new post request` event inside the content of the approval (NIP-18-style). | 62 | The post-approval event includes a stringified `new post request` event inside the `.content` of the approval (NIP-18-style). |
| 55 | 63 | ||
| 56 | ```js | 64 | ```js |
| 57 | { | 65 | { |