diff options
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 21 |
1 files changed, 15 insertions, 6 deletions
| @@ -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 | ||
| 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 is empty. Optionally, it MAY contain | 12 | The `content` of a repost event is _the stringified JSON of the reposted note_. It MAY also be empty, but that is not recommended. |
| 13 | the stringified JSON of the reposted note event for quick look up. | ||
| 14 | 13 | ||
| 15 | The repost event MUST include an `e` tag with the `id` of the note that is | 14 | The repost event MUST include an `e` tag with the `id` of the note that is |
| 16 | being reposted. That tag MUST include a relay URL as its third entry | 15 | being 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 | ||
| 24 | Quote reposts are `kind 1` events with an embedded `e` tag (see [NIP-08](08.md) and [NIP-27](27.md)). | 23 | 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. | 24 | (see [NIP-08](08.md) and [NIP-27](27.md)). Because a quote repost includes |
| 25 | an `e` tag, it may show up along replies to the reposted note. | ||
| 26 | |||
| 27 | ## Generic Reposts | ||
| 28 | |||
| 29 | Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | ||
| 30 | as 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 | ||
| 34 | of the reposted event as its value. | ||