diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-06-16 18:16:42 -0300 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-06-18 11:30:11 -0300 |
| commit | 7668507cdf5580037c3363a2acaf6a2e1f8e032f (patch) | |
| tree | b2599e6445c637997a266d142959eba87cc37a94 /18.md | |
| parent | 36e9fd59e93730c2d2002ec7aac58a53e58143a3 (diff) | |
kind:16 generic reposts.
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 18 |
1 files changed, 14 insertions, 4 deletions
| @@ -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 | ||
| 9 | A repost is a `kind 6` note that is used to signal to followers | 9 | A repost is a `kind 6` event that is used to signal to followers |
| 10 | that another event is worth reading. | 10 | that a `kind 1` text note is worth reading. |
| 11 | 11 | ||
| 12 | The `content` of a repost event the stringified JSON of the reposted note | 12 | The `content` of a repost event the stringified JSON of the reposted note |
| 13 | for quick look up. It MAY also be empty, but that is not recommended. | 13 | for 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 | ||
| 24 | Quote reposts are `kind 1` events with an embedded `e` tag (see [NIP-08](08.md) and [NIP-27](27.md)). | 24 | Quote reposts are `kind 1` events with an embedded `e` tag |
| 25 | Because 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 |
| 26 | an `e` tag, it may show up along replies to the reposted note. | ||
| 27 | |||
| 28 | ## Generic Reposts | ||
| 29 | |||
| 30 | Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | ||
| 31 | as 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 | ||
| 35 | of the reposted event as its value. | ||