diff options
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 24 |
1 files changed, 17 insertions, 7 deletions
| @@ -4,13 +4,12 @@ NIP-18 | |||
| 4 | Reposts | 4 | Reposts |
| 5 | ------- | 5 | ------- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:jb55` `author:fiatjaf` `author:arthurfranca` | 7 | `draft` `optional` |
| 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,16 @@ 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 `q` tag of the note being |
| 25 | Because a quote repost includes an `e` tag, it may show up along replies to the reposted note. | 24 | quote reposted. The `q` tag ensures quote reposts are not pulled and included |
| 25 | as replies in threads. It also allows you to easily pull and count all of the | ||
| 26 | quotes for a post. | ||
| 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. | ||