diff options
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 24 |
1 files changed, 12 insertions, 12 deletions
| @@ -21,18 +21,12 @@ reposted. | |||
| 21 | 21 | ||
| 22 | ## Quote Reposts | 22 | ## Quote Reposts |
| 23 | 23 | ||
| 24 | Quote reposts are `kind 1` events with an embedded `q` tag of the note being | 24 | Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any |
| 25 | quote reposted. The `q` tag ensures quote reposts are not pulled and included | 25 | event must be converted into `q` tags. The `q` tag ensures quote reposts are |
| 26 | as replies in threads. It also allows you to easily pull and count all of the | 26 | not pulled and included as replies in threads. It also allows you to easily |
| 27 | quotes for a post. | 27 | pull and count all of the quotes for a post. The syntax follows |
| 28 | 28 | ||
| 29 | `q` tags should follow the same conventions as NIP 10 `e` tags, with the exception | 29 | `["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]` |
| 30 | of the `mark` argument. | ||
| 31 | |||
| 32 | `["q", <event-id>, <relay-url>, <pubkey>]` | ||
| 33 | |||
| 34 | Quote reposts MUST include the [NIP-21](21.md) `nevent`, `note`, or `naddr` of the | ||
| 35 | event in the content. | ||
| 36 | 30 | ||
| 37 | ## Generic Reposts | 31 | ## Generic Reposts |
| 38 | 32 | ||
| @@ -40,6 +34,12 @@ Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | |||
| 40 | as a "generic repost", that can include any kind of event inside other than | 34 | as a "generic repost", that can include any kind of event inside other than |
| 41 | `kind 1`. | 35 | `kind 1`. |
| 42 | 36 | ||
| 43 | `kind 16` reposts SHOULD contain a `k` tag with the stringified kind number | 37 | `kind 16` reposts SHOULD contain a `"k"` tag with the stringified kind number |
| 44 | of the reposted event as its value. | 38 | of the reposted event as its value. |
| 45 | 39 | ||
| 40 | When reposting a replaceable event, the repost SHOULD include an `"a"` tag with | ||
| 41 | the event coordinate (`kind:pubkey:d-tag`) of the reposted event. | ||
| 42 | |||
| 43 | If the `"a"` tag is not present, it indicates that a specific version of a replaceable | ||
| 44 | event is being reposted, in which case the `content` field must contain the full | ||
| 45 | JSON string of the reposted event. | ||