upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-06-16 18:16:42 -0300
committerfiatjaf_ <fiatjaf@gmail.com>2023-06-18 11:30:11 -0300
commit7668507cdf5580037c3363a2acaf6a2e1f8e032f (patch)
treeb2599e6445c637997a266d142959eba87cc37a94
parent36e9fd59e93730c2d2002ec7aac58a53e58143a3 (diff)
kind:16 generic reposts.
-rw-r--r--18.md18
1 files changed, 14 insertions, 4 deletions
diff --git a/18.md b/18.md
index cdea9cd..965263f 100644
--- a/18.md
+++ b/18.md
@@ -6,8 +6,8 @@ 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 the stringified JSON of the reposted note 12The `content` of a repost event the stringified JSON of the reposted note
13for quick look up. It MAY also be empty, but that is not recommended. 13for quick look up. It MAY also be empty, but that is not recommended.
@@ -21,5 +21,15 @@ reposted.
21 21
22## Quote Reposts 22## Quote Reposts
23 23
24Quote reposts are `kind 1` events with an embedded `e` tag (see [NIP-08](08.md) and [NIP-27](27.md)). 24Quote 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. 25(see [NIP-08](08.md) and [NIP-27](27.md)). Because a quote repost includes
26an `e` tag, it may show up along replies to the reposted note.
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.