upleb.uk

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

summaryrefslogtreecommitdiff
path: root/72.md
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-11-18 09:13:12 -0300
committerfiatjaf <fiatjaf@gmail.com>2023-11-18 09:13:12 -0300
commit5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (patch)
tree4fff8694238b3ae5e692a8480869ad1266b95be4 /72.md
parentb0df71824f9967130b54150b64cc70fa94bffec2 (diff)
reformat a bunch of json things and small nitpicks.
Diffstat (limited to '72.md')
-rw-r--r--72.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/72.md b/72.md
index 74c7f08..c0fffff 100644
--- a/72.md
+++ b/72.md
@@ -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 ...
18 "created_at": <Unix timestamp in seconds>, 17 "created_at": <Unix timestamp in seconds>,
19 "kind": 34550, 18 "kind": 34550,
20 "tags": [ 19 "tags": [
@@ -34,7 +33,8 @@ The goal of this NIP is to create moderator-approved public communities around a
34 ["relay", "<relay where to send and receive requests>", "requests"], 33 ["relay", "<relay where to send and receive requests>", "requests"],
35 ["relay", "<relay where to send and receive approvals>", "approvals"], 34 ["relay", "<relay where to send and receive approvals>", "approvals"],
36 ["relay", "<relay where to post requests to and fetch approvals from>"] 35 ["relay", "<relay where to post requests to and fetch approvals from>"]
37 ] 36 ],
37 ...
38} 38}
39``` 39```
40 40
@@ -44,12 +44,12 @@ Any Nostr event can be submitted to a community by anyone for approval. Clients
44 44
45```json 45```json
46{ 46{
47 ...
48 "kind": 1, 47 "kind": 1,
49 "tags": [ 48 "tags": [
50 ["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>"],
51 ], 50 ],
52 "content": "hello world" 51 "content": "hello world",
52 ...
53} 53}
54``` 54```
55 55
@@ -61,7 +61,6 @@ The post-approval event MUST include `a` tags of the communities the moderator i
61 61
62```json 62```json
63{ 63{
64 ...
65 "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>",
66 "kind": 4550, 65 "kind": 4550,
67 "tags": [ 66 "tags": [
@@ -70,7 +69,8 @@ The post-approval event MUST include `a` tags of the communities the moderator i
70 ["p", "<port-author-pubkey>", "<optional-relay-url>"], 69 ["p", "<port-author-pubkey>", "<optional-relay-url>"],
71 ["k", "<post-request-kind>"] 70 ["k", "<post-request-kind>"]
72 ], 71 ],
73 "content": "<the full approved event, JSON-encoded>" 72 "content": "<the full approved event, JSON-encoded>",
73 ...
74} 74}
75``` 75```
76 76
@@ -86,7 +86,7 @@ Community clients SHOULD display posts that have been approved by at least 1 mod
86 86
87The following filter displays the approved posts. 87The following filter displays the approved posts.
88 88
89```js 89```json
90[ 90[
91 "REQ", 91 "REQ",
92 "_", 92 "_",