mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-09 00:28:51 +00:00
Improve generic reposts for replaceable events (#2132)
This commit is contained in:
13
18.md
13
18.md
@@ -1,8 +1,6 @@
|
|||||||
NIP-18
|
# NIP-18
|
||||||
======
|
|
||||||
|
|
||||||
Reposts
|
## Reposts
|
||||||
-------
|
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
@@ -36,3 +34,10 @@ as a "generic repost", that can include any kind of event inside other than
|
|||||||
|
|
||||||
`kind 16` reposts SHOULD contain a `"k"` tag with the stringified kind number
|
`kind 16` reposts SHOULD contain a `"k"` tag with the stringified kind number
|
||||||
of the reposted event as its value.
|
of the reposted event as its value.
|
||||||
|
|
||||||
|
When reposting a replaceable event, the repost SHOULD include an `"a"` tag with
|
||||||
|
the event coordinate (`kind:pubkey:d-tag`) of the reposted event.
|
||||||
|
|
||||||
|
If the `"a"` tag is not present, it indicates that a specific version of a replaceable
|
||||||
|
event is being reposted, in which case the `content` field must contain the full
|
||||||
|
JSON string of the reposted event.
|
||||||
|
|||||||
Reference in New Issue
Block a user