diff options
| -rw-r--r-- | 18.md | 22 |
1 files changed, 16 insertions, 6 deletions
| @@ -18,6 +18,15 @@ to indicate where it can be fetched. | |||
| 18 | The repost SHOULD include a `p` tag with the `pubkey` of the event being | 18 | The repost SHOULD include a `p` tag with the `pubkey` of the event being |
| 19 | reposted. | 19 | reposted. |
| 20 | 20 | ||
| 21 | ## Generic Reposts | ||
| 22 | |||
| 23 | Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | ||
| 24 | as a "generic repost", that can include any kind of event inside other than | ||
| 25 | `kind 1`. | ||
| 26 | |||
| 27 | `kind 16` reposts SHOULD contain a `k` tag with the stringified kind number | ||
| 28 | of the reposted event as its value. | ||
| 29 | |||
| 21 | ## Quote Reposts | 30 | ## Quote Reposts |
| 22 | 31 | ||
| 23 | Quote reposts are `kind 1` events with an embedded `q` tag of the note being | 32 | Quote reposts are `kind 1` events with an embedded `q` tag of the note being |
| @@ -25,11 +34,12 @@ 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 | 34 | as replies in threads. It also allows you to easily pull and count all of the |
| 26 | quotes for a post. | 35 | quotes for a post. |
| 27 | 36 | ||
| 28 | ## Generic Reposts | 37 | `q` tags should follow the same conventions as NIP 10 `e` tags, with the exception |
| 38 | of the `mark` argument. The first argument MAY be either an event id or an address. | ||
| 29 | 39 | ||
| 30 | Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | 40 | `["q", <event-id-or-address>, <relay-url>, <pubkey>]` |
| 31 | as a "generic repost", that can include any kind of event inside other than | ||
| 32 | `kind 1`. | ||
| 33 | 41 | ||
| 34 | `kind 16` reposts SHOULD contain a `k` tag with the stringified kind number | 42 | Quote reposts MUST include the bech32-encoded `nevent`, `note`, or `naddr` of the |
| 35 | of the reposted event as its value. | 43 | event in the content. The embedded entity should match the type of the tag (in |
| 44 | other words, if embedding a `naddr`, the `q` tag should contain an address, not | ||
| 45 | an event id). | ||