upleb.uk

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

summaryrefslogtreecommitdiff
path: root/53.md
diff options
context:
space:
mode:
authorkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
committerkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
commite6552476aa2e5ca7256be572a9aa226ec8a022ee (patch)
tree46f14902bd2bfb85e5f3369ece456c46b697b1a2 /53.md
parentb4a2561df7325b8624bc5ffad154ec946ade2f1e (diff)
format(all): json formatting
Diffstat (limited to '53.md')
-rw-r--r--53.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/53.md b/53.md
index 15bdbc9..ee12fef 100644
--- a/53.md
+++ b/53.md
@@ -16,7 +16,7 @@ A special event with `kind:30311` "Live Event" is defined as an _addressable eve
16 16
17For example: 17For 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
65Event `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. 65Event `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