upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/172.md
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2023-06-15 09:46:24 -0400
committerfiatjaf_ <fiatjaf@gmail.com>2023-08-08 13:27:32 -0300
commitc07b5fa9b03dc4ce4f68140e3a57ceafcf5b95b3 (patch)
treeffa1825567bbf1a21f4c4c0713c600e322662bca /172.md
parent3ff40201bdeae142be249c13a4c1983c18aabf84 (diff)
Moves post approval to a regular (non-replaceable event)
Diffstat (limited to '172.md')
-rw-r--r--172.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/172.md b/172.md
index 9f5fab5..4a9f5a9 100644
--- a/172.md
+++ b/172.md
@@ -6,7 +6,7 @@ Moderated Communities (Reddit Style)
6 6
7`draft` `optional` `author:vitorpamplona` 7`draft` `optional` `author:vitorpamplona`
8 8
9The goal of this NIP is to create moderator-approved public communities around a topic. It defines the replaceable event `34550` to define the community and the current list of moderators/administrators. Users that want to post into the community, simply tag any Nostr event with an `a` tag. Moderators issue an approval event `34551` that links the community with the new post. 9The goal of this NIP is to create moderator-approved public communities around a topic. It defines the replaceable event `34550` to define the community and the current list of moderators/administrators. Users that want to post into the community, simply tag any Nostr event with an `a` tag. Moderators issue an approval event `4550` that links the community with the new post.
10 10
11# Community definition 11# Community definition
12 12
@@ -66,7 +66,7 @@ The post-approval event includes a stringified `new post request` event inside t
66 "id": "<32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>", 66 "id": "<32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>",
67 "pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>", 67 "pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>",
68 "created_at": "<Unix timestamp in seconds>", 68 "created_at": "<Unix timestamp in seconds>",
69 "kind": "34551", 69 "kind": "4550",
70 "tags": [ 70 "tags": [
71 ["a", "34550:<community event author pubkey>:<d-identifier of the community>", "<optional relay url>"], 71 ["a", "34550:<community event author pubkey>:<d-identifier of the community>", "<optional relay url>"],
72 ["e", "<Post Request ID>", "<optional relay url>"], 72 ["e", "<Post Request ID>", "<optional relay url>"],
@@ -77,7 +77,7 @@ The post-approval event includes a stringified `new post request` event inside t
77} 77}
78``` 78```
79 79
80It's recommended that multiple moderators approve posts to avoid unapproving them when a given moderator is removed from the owner's list. In case the full list of moderators must be rotated, the new moderator set must sign post-approvals for posts in the past or the community will restart. 80It's recommended that multiple moderators approve posts to avoid unapproving them when a given moderator is removed from the owner's list. In case the full list of moderators must be rotated, the new moderator set must sign new approvals for posts in the past or the community will restart. The owner can also periodically copies of each moderator's approval events.
81 81
82# Displaying 82# Displaying
83 83
@@ -88,7 +88,7 @@ The following filter displays the approved posts.
88```js 88```js
89{ 89{
90 "authors": ["<author>", "moderator1", "moderator2", "moderator3", ...], 90 "authors": ["<author>", "moderator1", "moderator2", "moderator3", ...],
91 "kinds": 34551, 91 "kinds": ["4550"],
92 "#a": ["34550:<community event author pubkey>:<d-identifier of the community>"], 92 "#a": ["34550:<community event author pubkey>:<d-identifier of the community>"],
93} 93}
94``` \ No newline at end of file 94``` \ No newline at end of file