upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/18.md
diff options
context:
space:
mode:
authorCody Tseng <codytseng98@gmail.com>2025-12-02 09:07:37 +0800
committerGitHub <noreply@github.com>2025-12-01 17:07:37 -0800
commita4dadca077645dcb3ceddc11dbe4982ce52196bc (patch)
treebfaaf2fec605f1e1c396dcbab5251adf6cbc7d9b /18.md
parent2a33cceff6cbea14006791a4b2342391fd1db0be (diff)
Improve generic reposts for replaceable events (#2132)
Diffstat (limited to '18.md')
-rw-r--r--18.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/18.md b/18.md
index 7967a59..0dead37 100644
--- a/18.md
+++ b/18.md
@@ -1,8 +1,6 @@
1NIP-18 1# NIP-18
2======
3 2
4Reposts 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
24Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any 22Mentions to [NIP-21](21.md) entities like `nevent`, `note` and `naddr` on any
25event must be converted into `q` tags. The `q` tag ensures quote reposts are 23event must be converted into `q` tags. The `q` tag ensures quote reposts are
26not pulled and included as replies in threads. It also allows you to easily 24not pulled and included as replies in threads. It also allows you to easily
27pull and count all of the quotes for a post. The syntax follows 25pull 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
38of the reposted event as its value. 36of the reposted event as its value.
37
38When reposting a replaceable event, the repost SHOULD include an `"a"` tag with
39the event coordinate (`kind:pubkey:d-tag`) of the reposted event.
40
41If the `"a"` tag is not present, it indicates that a specific version of a replaceable
42event is being reposted, in which case the `content` field must contain the full
43JSON string of the reposted event.