diff options
| author | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
|---|---|---|
| committer | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
| commit | e6552476aa2e5ca7256be572a9aa226ec8a022ee (patch) | |
| tree | 46f14902bd2bfb85e5f3369ece456c46b697b1a2 /53.md | |
| parent | b4a2561df7325b8624bc5ffad154ec946ade2f1e (diff) | |
format(all): json formatting
Diffstat (limited to '53.md')
| -rw-r--r-- | 53.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -16,7 +16,7 @@ A special event with `kind:30311` "Live Event" is defined as an _addressable eve | |||
| 16 | 16 | ||
| 17 | For example: | 17 | For example: |
| 18 | 18 | ||
| 19 | ```json | 19 | ```jsonc |
| 20 | { | 20 | { |
| 21 | "kind": 30311, | 21 | "kind": 30311, |
| 22 | "tags": [ | 22 | "tags": [ |
| @@ -35,10 +35,10 @@ For example: | |||
| 35 | ["p", "91cf9..4e5ca", "wss://provider1.com/", "Host", "<proof>"], | 35 | ["p", "91cf9..4e5ca", "wss://provider1.com/", "Host", "<proof>"], |
| 36 | ["p", "14aeb..8dad4", "wss://provider2.com/nostr", "Speaker"], | 36 | ["p", "14aeb..8dad4", "wss://provider2.com/nostr", "Speaker"], |
| 37 | ["p", "612ae..e610f", "ws://provider3.com/ws", "Participant"], | 37 | ["p", "612ae..e610f", "ws://provider3.com/ws", "Participant"], |
| 38 | ["relays", "wss://one.com", "wss://two.com", ...] | 38 | ["relays", "wss://one.com", "wss://two.com", /*...*/] |
| 39 | ], | 39 | ], |
| 40 | "content": "", | 40 | "content": "", |
| 41 | ... | 41 | // other fields... |
| 42 | } | 42 | } |
| 43 | ``` | 43 | ``` |
| 44 | 44 | ||
| @@ -64,14 +64,14 @@ This feature is important to avoid malicious event owners adding large account h | |||
| 64 | 64 | ||
| 65 | 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. | 65 | 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. |
| 66 | 66 | ||
| 67 | ```json | 67 | ```jsonc |
| 68 | { | 68 | { |
| 69 | "kind": 1311, | 69 | "kind": 1311, |
| 70 | "tags": [ | 70 | "tags": [ |
| 71 | ["a", "30311:<Community event author pubkey>:<d-identifier of the community>", "<Optional relay url>", "root"], | 71 | ["a", "30311:<Community event author pubkey>:<d-identifier of the community>", "<Optional relay url>", "root"], |
| 72 | ], | 72 | ], |
| 73 | "content": "Zaps to live streams is beautiful.", | 73 | "content": "Zaps to live streams is beautiful.", |
| 74 | ... | 74 | // other fields... |
| 75 | } | 75 | } |
| 76 | ``` | 76 | ``` |
| 77 | 77 | ||