upleb.uk

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

summaryrefslogtreecommitdiff
path: root/22.md
diff options
context:
space:
mode:
Diffstat (limited to '22.md')
-rw-r--r--22.md46
1 files changed, 23 insertions, 23 deletions
diff --git a/22.md b/22.md
index 8eff09a..be07e53 100644
--- a/22.md
+++ b/22.md
@@ -18,9 +18,9 @@ and `p` for the author of the parent item.
18 18
19```jsonc 19```jsonc
20{ 20{
21 kind: 1111, 21 "kind": 1111,
22 content: '<comment>', 22 "content": "<comment>",
23 tags: [ 23 "tags": [
24 // root scope: event addresses, event ids, or I-tags. 24 // root scope: event addresses, event ids, or I-tags.
25 ["<A, E, I>", "<address, id or I-value>", "<relay or web page hint>", "<root event's pubkey, if an E tag>"], 25 ["<A, E, I>", "<address, id or I-value>", "<relay or web page hint>", "<root event's pubkey, if an E tag>"],
26 // the root item kind 26 // the root item kind
@@ -64,9 +64,9 @@ A comment on a blog post looks like this:
64 64
65```jsonc 65```jsonc
66{ 66{
67 kind: 1111, 67 "kind": 1111,
68 content: 'Great blog post!', 68 "content": "Great blog post!",
69 tags: [ 69 "tags": [
70 // top-level comments scope to event addresses or ids 70 // top-level comments scope to event addresses or ids
71 ["A", "30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7", "wss://example.relay"], 71 ["A", "30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7", "wss://example.relay"],
72 // the root kind 72 // the root kind
@@ -91,9 +91,9 @@ A comment on a [NIP-94](94.md) file looks like this:
91 91
92```jsonc 92```jsonc
93{ 93{
94 kind: 1111, 94 "kind": 1111,
95 content: 'Great file!', 95 "content": "Great file!",
96 tags: [ 96 "tags": [
97 // top-level comments have the same scope and reply to addresses or ids 97 // top-level comments have the same scope and reply to addresses or ids
98 ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "3721e07b079525289877c366ccab47112bdff3d1b44758ca333feb2dbbbbe5bb"], 98 ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "3721e07b079525289877c366ccab47112bdff3d1b44758ca333feb2dbbbbe5bb"],
99 // the root kind 99 // the root kind
@@ -115,9 +115,9 @@ A reply to a comment looks like this:
115 115
116```jsonc 116```jsonc
117{ 117{
118 kind: 1111, 118 "kind": 1111,
119 content: 'This is a reply to "Great file!"', 119 "content": "This is a reply to \"Great file!\"",
120 tags: [ 120 "tags": [
121 // nip-94 file event id 121 // nip-94 file event id
122 ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "fd913cd6fa9edb8405750cd02a8bbe16e158b8676c0e69fdc27436cc4a54cc9a"], 122 ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "fd913cd6fa9edb8405750cd02a8bbe16e158b8676c0e69fdc27436cc4a54cc9a"],
123 // the root kind 123 // the root kind
@@ -138,9 +138,9 @@ A comment on a website's url looks like this:
138 138
139```jsonc 139```jsonc
140{ 140{
141 kind: 1111, 141 "kind": 1111,
142 content: 'Nice article!', 142 "content": "Nice article!",
143 tags: [ 143 "tags": [
144 // referencing the root url 144 // referencing the root url
145 ["I", "https://abc.com/articles/1"], 145 ["I", "https://abc.com/articles/1"],
146 // the root "kind": for an url, the kind is its domain 146 // the root "kind": for an url, the kind is its domain
@@ -159,11 +159,11 @@ A podcast comment example:
159 159
160```jsonc 160```jsonc
161{ 161{
162 id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05", 162 "id": "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05",
163 pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111", 163 "pubkey": "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111",
164 kind: 1111, 164 "kind": 1111,
165 content: "This was a great episode!", 165 "content": "This was a great episode!",
166 tags: [ 166 "tags": [
167 // podcast episode reference 167 // podcast episode reference
168 ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"], 168 ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
169 // podcast episode type 169 // podcast episode type
@@ -181,9 +181,9 @@ A reply to a podcast comment:
181 181
182```jsonc 182```jsonc
183{ 183{
184 kind: 1111, 184 "kind": 1111,
185 content: "I'm replying to the above comment.", 185 "content": "I'm replying to the above comment.",
186 tags: [ 186 "tags": [
187 // podcast episode reference 187 // podcast episode reference
188 ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"], 188 ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"],
189 // podcast episode type 189 // podcast episode type