Adds preferred relay information to tags.

This commit is contained in:
Vitor Pamplona 2023-06-13 10:34:34 -04:00 committed by fiatjaf_
parent 6fbe488504
commit bf84e733f3

16
172.md
View File

@ -21,11 +21,19 @@ Kind 34550 should include any field that helps define the community and the set
"tags": [
["d", "<community_name>"],
["description", "<community_description>"],
["image", "<communityimagen>", "WidthxHeight"]
//.. other tags relevant to defining the community
// moderators
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"]
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"]
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"]
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"],
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"],
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>", "moderator"],
// relays used by the community
["relay", "<relay hosting author kind 0>", "author"],
["relay", "<relay where to post requests to and fetch approvals from>"],
["relay", "<relay where to post requests to and fetch approvals from>"]
]
}
```
@ -51,7 +59,7 @@ Community management clients can filter all mentions of the kind-34550 event and
# Post Approval by moderators
The post-approval event includes a stringified `new post request` event inside the content of the approval (NIP-18-style).
The post-approval event includes a stringified `new post request` event inside the `.content` of the approval (NIP-18-style).
```js
{