diff options
| author | Jon Staab <jstaab@protonmail.com> | 2023-05-12 05:10:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 05:10:45 -0700 |
| commit | e5302f84c74cf42d878a3ed18257a16bc0d3b748 (patch) | |
| tree | b1a3ad9c0317bf7c38f34c500559b66ff7c0a22d /18.md | |
| parent | 1c728516dfdc7508ce27eda222bde78466e3457d (diff) | |
| parent | 4208652dc7a39c63c39559b13c656ec30400fcba (diff) | |
Merge branch 'master' into patch-1
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 12 |
1 files changed, 9 insertions, 3 deletions
| @@ -4,16 +4,22 @@ NIP-18 | |||
| 4 | Reposts | 4 | Reposts |
| 5 | ------- | 5 | ------- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:jb55` | 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` note that is used to signal to followers |
| 10 | that another event is worth reading. | 10 | that another event is worth reading. |
| 11 | 11 | ||
| 12 | The `content` of a repost event is empty. | 12 | The `content` of a repost event is empty. Optionally, it MAY contain |
| 13 | the stringified JSON of the reposted note event for quick look up. | ||
| 13 | 14 | ||
| 14 | The repost event MUST include an `e` tag with the `id` of the note that is | 15 | The repost event MUST include an `e` tag with the `id` of the note that is |
| 15 | being reposted. That tag SHOULD include a relay URL as its third entry | 16 | being reposted. That tag MUST include a relay URL as its third entry |
| 16 | to indicate where it can be fetched. | 17 | to indicate where it can be fetched. |
| 17 | 18 | ||
| 18 | The repost SHOULD include a `p` tag with the `pubkey` of the event being | 19 | The repost SHOULD include a `p` tag with the `pubkey` of the event being |
| 19 | reposted. | 20 | reposted. |
| 21 | |||
| 22 | ## Quote Reposts | ||
| 23 | |||
| 24 | Quote reposts are `kind 1` events with an embedded `e` tag (see [NIP-08](08.md) and [NIP-27](27.md)). | ||
| 25 | Because a quote repost includes an `e` tag, it may show up along replies to the reposted note. | ||