upleb.uk

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

summaryrefslogtreecommitdiff
path: root/18.md
diff options
context:
space:
mode:
Diffstat (limited to '18.md')
-rw-r--r--18.md22
1 files changed, 16 insertions, 6 deletions
diff --git a/18.md b/18.md
index 27c5915..9d0ce1c 100644
--- a/18.md
+++ b/18.md
@@ -18,6 +18,15 @@ to indicate where it can be fetched.
18The repost SHOULD include a `p` tag with the `pubkey` of the event being 18The repost SHOULD include a `p` tag with the `pubkey` of the event being
19reposted. 19reposted.
20 20
21## Generic Reposts
22
23Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16`
24as a "generic repost", that can include any kind of event inside other than
25`kind 1`.
26
27`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number
28of the reposted event as its value.
29
21## Quote Reposts 30## Quote Reposts
22 31
23Quote reposts are `kind 1` events with an embedded `q` tag of the note being 32Quote reposts are `kind 1` events with an embedded `q` tag of the note being
@@ -25,11 +34,12 @@ quote reposted. The `q` tag ensures quote reposts are not pulled and included
25as replies in threads. It also allows you to easily pull and count all of the 34as replies in threads. It also allows you to easily pull and count all of the
26quotes for a post. 35quotes for a post.
27 36
28## Generic Reposts 37`q` tags should follow the same conventions as NIP 10 `e` tags, with the exception
38of the `mark` argument. The first argument MAY be either an event id or an address.
29 39
30Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` 40`["q", <event-id-or-address>, <relay-url>, <pubkey>]`
31as a "generic repost", that can include any kind of event inside other than
32`kind 1`.
33 41
34`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number 42Quote reposts MUST include the bech32-encoded `nevent`, `note`, or `naddr` of the
35of the reposted event as its value. 43event in the content. The embedded entity should match the type of the tag (in
44other words, if embedding a `naddr`, the `q` tag should contain an address, not
45an event id).