reformat a bunch of json things and small nitpicks.

This commit is contained in:
fiatjaf
2023-11-18 09:13:12 -03:00
parent b0df71824f
commit 5dcfe85306
21 changed files with 385 additions and 365 deletions

14
72.md
View File

@@ -14,7 +14,6 @@ The goal of this NIP is to create moderator-approved public communities around a
```json
{
...
"created_at": <Unix timestamp in seconds>,
"kind": 34550,
"tags": [
@@ -34,7 +33,8 @@ The goal of this NIP is to create moderator-approved public communities around a
["relay", "<relay where to send and receive requests>", "requests"],
["relay", "<relay where to send and receive approvals>", "approvals"],
["relay", "<relay where to post requests to and fetch approvals from>"]
]
],
...
}
```
@@ -44,12 +44,12 @@ Any Nostr event can be submitted to a community by anyone for approval. Clients
```json
{
...
"kind": 1,
"tags": [
["a", "34550:<community event author pubkey>:<community-d-identifier>", "<optional-relay-url>"],
],
"content": "hello world"
"content": "hello world",
...
}
```
@@ -61,7 +61,6 @@ The post-approval event MUST include `a` tags of the communities the moderator i
```json
{
...
"pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>",
"kind": 4550,
"tags": [
@@ -70,7 +69,8 @@ The post-approval event MUST include `a` tags of the communities the moderator i
["p", "<port-author-pubkey>", "<optional-relay-url>"],
["k", "<post-request-kind>"]
],
"content": "<the full approved event, JSON-encoded>"
"content": "<the full approved event, JSON-encoded>",
...
}
```
@@ -86,7 +86,7 @@ Community clients SHOULD display posts that have been approved by at least 1 mod
The following filter displays the approved posts.
```js
```json
[
"REQ",
"_",