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.md24
1 files changed, 17 insertions, 7 deletions
diff --git a/18.md b/18.md
index 422ad9c..27c5915 100644
--- a/18.md
+++ b/18.md
@@ -4,13 +4,12 @@ NIP-18
4Reposts 4Reposts
5------- 5-------
6 6
7`draft` `optional` `author:jb55` `author:fiatjaf` `author:arthurfranca` 7`draft` `optional`
8 8
9A repost is a `kind 6` note that is used to signal to followers 9A repost is a `kind 6` event that is used to signal to followers
10that another event is worth reading. 10that a `kind 1` text note is worth reading.
11 11
12The `content` of a repost event is empty. Optionally, it MAY contain 12The `content` of a repost event is _the stringified JSON of the reposted note_. It MAY also be empty, but that is not recommended.
13the stringified JSON of the reposted note event for quick look up.
14 13
15The repost event MUST include an `e` tag with the `id` of the note that is 14The repost event MUST include an `e` tag with the `id` of the note that is
16being reposted. That tag MUST include a relay URL as its third entry 15being reposted. That tag MUST include a relay URL as its third entry
@@ -21,5 +20,16 @@ reposted.
21 20
22## Quote Reposts 21## Quote Reposts
23 22
24Quote reposts are `kind 1` events with an embedded `e` tag (see [NIP-08](08.md) and [NIP-27](27.md)). 23Quote reposts are `kind 1` events with an embedded `q` tag of the note being
25Because a quote repost includes an `e` tag, it may show up along replies to the reposted note. 24quote 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
26quotes for a post.
27
28## Generic Reposts
29
30Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16`
31as a "generic repost", that can include any kind of event inside other than
32`kind 1`.
33
34`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number
35of the reposted event as its value.