From 77e5af51e38d5ee8ed7ae7c438d8a9e70ad0a308 Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 20 Nov 2025 22:45:00 +0800 Subject: [PATCH 1/3] Improve generic reposts for replaceable events --- 18.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/18.md b/18.md index 7967a59cd0..9e5582bf0b 100644 --- a/18.md +++ b/18.md @@ -36,3 +36,7 @@ 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 of the reposted event as its value. + +When reposting a replaceable event, the repost MUST include an `"a"` tag with the +event coordinate (`kind:pubkey:d-tag`) of the reposted event, and the `content` +SHOULD be empty. From 1381664d374e5822705ae007a8ed9c524a798a73 Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 20 Nov 2025 23:12:00 +0800 Subject: [PATCH 2/3] Removing the suggestion for empty content --- 18.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/18.md b/18.md index 9e5582bf0b..1b66c78ab2 100644 --- a/18.md +++ b/18.md @@ -38,5 +38,4 @@ as a "generic repost", that can include any kind of event inside other than of the reposted event as its value. When reposting a replaceable event, the repost MUST include an `"a"` tag with the -event coordinate (`kind:pubkey:d-tag`) of the reposted event, and the `content` -SHOULD be empty. +event coordinate (`kind:pubkey:d-tag`) of the reposted event. From 9411ec91106dcb2befcb3fb31ced0ffea1412b77 Mon Sep 17 00:00:00 2001 From: codytseng Date: Mon, 1 Dec 2025 23:02:28 +0800 Subject: [PATCH 3/3] Add clarification for reposting specific versions of replaceable events --- 18.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/18.md b/18.md index 1b66c78ab2..0dead37e46 100644 --- a/18.md +++ b/18.md @@ -1,8 +1,6 @@ -NIP-18 -====== +# NIP-18 -Reposts -------- +## Reposts `draft` `optional` @@ -21,9 +19,9 @@ reposted. ## Quote Reposts -Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any -event must be converted into `q` tags. The `q` tag ensures quote reposts are -not pulled and included as replies in threads. It also allows you to easily +Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any +event must be converted into `q` tags. The `q` tag ensures quote reposts are +not pulled and included as replies in threads. It also allows you to easily pull and count all of the quotes for a post. The syntax follows `["q", " or ", "", ""]` @@ -37,5 +35,9 @@ 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 of the reposted event as its value. -When reposting a replaceable event, the repost MUST include an `"a"` tag with the -event coordinate (`kind:pubkey:d-tag`) of the reposted event. +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.