mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-09-01 05:50:47 -04:00
format(all): json formatting
This commit is contained in:
10
53.md
10
53.md
@@ -16,7 +16,7 @@ A special event with `kind:30311` "Live Event" is defined as an _addressable eve
|
||||
|
||||
For example:
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 30311,
|
||||
"tags": [
|
||||
@@ -35,10 +35,10 @@ For example:
|
||||
["p", "91cf9..4e5ca", "wss://provider1.com/", "Host", "<proof>"],
|
||||
["p", "14aeb..8dad4", "wss://provider2.com/nostr", "Speaker"],
|
||||
["p", "612ae..e610f", "ws://provider3.com/ws", "Participant"],
|
||||
["relays", "wss://one.com", "wss://two.com", ...]
|
||||
["relays", "wss://one.com", "wss://two.com", /*...*/]
|
||||
],
|
||||
"content": "",
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -64,14 +64,14 @@ This feature is important to avoid malicious event owners adding large account h
|
||||
|
||||
Event `kind:1311` is live chat's channel message. Clients MUST include the `a` tag of the activity with a `root` marker. Other Kind-1 tags such as `reply` and `mention` can also be used.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1311,
|
||||
"tags": [
|
||||
["a", "30311:<Community event author pubkey>:<d-identifier of the community>", "<Optional relay url>", "root"],
|
||||
],
|
||||
"content": "Zaps to live streams is beautiful.",
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user