diff options
| -rw-r--r-- | 18.md | 19 |
1 files changed, 12 insertions, 7 deletions
| @@ -1,8 +1,6 @@ | |||
| 1 | NIP-18 | 1 | # NIP-18 |
| 2 | ====== | ||
| 3 | 2 | ||
| 4 | Reposts | 3 | ## Reposts |
| 5 | ------- | ||
| 6 | 4 | ||
| 7 | `draft` `optional` | 5 | `draft` `optional` |
| 8 | 6 | ||
| @@ -21,9 +19,9 @@ reposted. | |||
| 21 | 19 | ||
| 22 | ## Quote Reposts | 20 | ## Quote Reposts |
| 23 | 21 | ||
| 24 | Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any | 22 | Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any |
| 25 | event must be converted into `q` tags. The `q` tag ensures quote reposts are | 23 | event must be converted into `q` tags. The `q` tag ensures quote reposts are |
| 26 | not pulled and included as replies in threads. It also allows you to easily | 24 | not pulled and included as replies in threads. It also allows you to easily |
| 27 | pull and count all of the quotes for a post. The syntax follows | 25 | pull and count all of the quotes for a post. The syntax follows |
| 28 | 26 | ||
| 29 | `["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]` | 27 | `["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]` |
| @@ -36,3 +34,10 @@ as a "generic repost", that can include any kind of event inside other than | |||
| 36 | 34 | ||
| 37 | `kind 16` reposts SHOULD contain a `"k"` tag with the stringified kind number | 35 | `kind 16` reposts SHOULD contain a `"k"` tag with the stringified kind number |
| 38 | of the reposted event as its value. | 36 | of the reposted event as its value. |
| 37 | |||
| 38 | When reposting a replaceable event, the repost SHOULD include an `"a"` tag with | ||
| 39 | the event coordinate (`kind:pubkey:d-tag`) of the reposted event. | ||
| 40 | |||
| 41 | If the `"a"` tag is not present, it indicates that a specific version of a replaceable | ||
| 42 | event is being reposted, in which case the `content` field must contain the full | ||
| 43 | JSON string of the reposted event. | ||