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.md21
1 files changed, 15 insertions, 6 deletions
diff --git a/18.md b/18.md
index 422ad9c..75c4100 100644
--- a/18.md
+++ b/18.md
@@ -6,11 +6,10 @@ Reposts
6 6
7`draft` `optional` `author:jb55` `author:fiatjaf` `author:arthurfranca` 7`draft` `optional` `author:jb55` `author:fiatjaf` `author:arthurfranca`
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,15 @@ 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 `e` tag
25Because a quote repost includes an `e` tag, it may show up along replies to the reposted note. 24(see [NIP-08](08.md) and [NIP-27](27.md)). Because a quote repost includes
25an `e` tag, it may show up along replies to the reposted note.
26
27## Generic Reposts
28
29Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16`
30as a "generic repost", that can include any kind of event inside other than
31`kind 1`.
32
33`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number
34of the reposted event as its value.