Normalize NIP-10 q tags with the one on NIP-22

This commit is contained in:
Vitor Pamplona 2025-02-05 12:38:51 -03:00
parent a0cd05f013
commit 9c867d8e2a

16
18.md
View File

@ -21,18 +21,12 @@ reposted.
## Quote Reposts ## Quote Reposts
Quote reposts are `kind 1` events with an embedded `q` tag of the note being Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any
quote reposted. The `q` tag ensures quote reposts are not pulled and included event must be converted into `q` tags. The `q` tag ensures quote reposts are
as replies in threads. It also allows you to easily pull and count all of the not pulled and included as replies in threads. It also allows you to easily
quotes for a post. pull and count all of the quotes for a post. The syntax follows
`q` tags should follow the same conventions as NIP 10 `e` tags, with the exception `["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]`
of the `mark` argument.
`["q", <event-id>, <relay-url>, <pubkey>]`
Quote reposts MUST include the [NIP-21](21.md) `nevent`, `note`, or `naddr` of the
event in the content.
## Generic Reposts ## Generic Reposts