diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2025-10-16 07:44:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-16 04:44:37 -0700 |
| commit | 3f79b7fde21bce53c7a07683a6fbec547095bcb6 (patch) | |
| tree | f4440d731dfa6c38f506dc3838495f4fbc6907b5 /18.md | |
| parent | a3c5554e34f2b292af705d94f49e68f280c7e451 (diff) | |
NIP-18: Normalize its `q` tags with the definition on NIP-22 (#1746)
Diffstat (limited to '18.md')
| -rw-r--r-- | 18.md | 16 |
1 files changed, 5 insertions, 11 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 | ||