mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-09-01 05:50:47 -04:00
reformat a bunch of json things and small nitpicks.
This commit is contained in:
14
72.md
14
72.md
@@ -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",
|
||||
"_",
|
||||
|
Reference in New Issue
Block a user