From 02e934acb725dc8a947e83e347a96c8f7ab9c219 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 2 Oct 2024 13:22:52 -0700 Subject: Clarify quote reposts --- 18.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to '18.md') diff --git a/18.md b/18.md index 27c5915..9d0ce1c 100644 --- a/18.md +++ b/18.md @@ -18,6 +18,15 @@ to indicate where it can be fetched. The repost SHOULD include a `p` tag with the `pubkey` of the event being reposted. +## Generic Reposts + +Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` +as a "generic repost", that can include any kind of event inside other than +`kind 1`. + +`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number +of the reposted event as its value. + ## Quote Reposts Quote reposts are `kind 1` events with an embedded `q` tag of the note being @@ -25,11 +34,12 @@ quote reposted. 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. -## Generic Reposts +`q` tags should follow the same conventions as NIP 10 `e` tags, with the exception +of the `mark` argument. The first argument MAY be either an event id or an address. -Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` -as a "generic repost", that can include any kind of event inside other than -`kind 1`. +`["q", , , ]` -`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number -of the reposted event as its value. +Quote reposts MUST include the bech32-encoded `nevent`, `note`, or `naddr` of the +event in the content. The embedded entity should match the type of the tag (in +other words, if embedding a `naddr`, the `q` tag should contain an address, not +an event id). -- cgit v1.2.3 From 78b6615c211b83b4f09c3421ccd61c05e3d0264f Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 2 Oct 2024 14:50:10 -0700 Subject: recommend k tag for quotes --- 18.md | 3 +++ 1 file changed, 3 insertions(+) (limited to '18.md') diff --git a/18.md b/18.md index 9d0ce1c..c8bf224 100644 --- a/18.md +++ b/18.md @@ -43,3 +43,6 @@ Quote reposts MUST include the bech32-encoded `nevent`, `note`, or `naddr` of th event in the content. The embedded entity should match the type of the tag (in other words, if embedding a `naddr`, the `q` tag should contain an address, not an event id). + +Quote reposts also SHOULD include a `k` tag matching the stringified `kind` of +the quoted note. -- cgit v1.2.3 From f5a6fb258fa235189303c8bf2c1132e9f81ac8c9 Mon Sep 17 00:00:00 2001 From: hodlbod Date: Thu, 3 Oct 2024 09:31:17 -0700 Subject: Update 18.md Co-authored-by: Asai Toshiya --- 18.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '18.md') diff --git a/18.md b/18.md index c8bf224..784946a 100644 --- a/18.md +++ b/18.md @@ -39,7 +39,7 @@ of the `mark` argument. The first argument MAY be either an event id or an addre `["q", , , ]` -Quote reposts MUST include the bech32-encoded `nevent`, `note`, or `naddr` of the +Quote reposts MUST include the [NIP-19](19.md) `nevent`, `note`, or `naddr` of the event in the content. The embedded entity should match the type of the tag (in other words, if embedding a `naddr`, the `q` tag should contain an address, not an event id). -- cgit v1.2.3 From 2053aee0c27e43c395706dee2706f2417c0ad268 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 3 Oct 2024 09:35:09 -0700 Subject: Remove addresses and tags from quote reposts --- 18.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to '18.md') diff --git a/18.md b/18.md index 784946a..f1e3f8c 100644 --- a/18.md +++ b/18.md @@ -35,14 +35,9 @@ as replies in threads. It also allows you to easily pull and count all of the quotes for a post. `q` tags should follow the same conventions as NIP 10 `e` tags, with the exception -of the `mark` argument. The first argument MAY be either an event id or an address. +of the `mark` argument. -`["q", , , ]` +`["q", , , ]` Quote reposts MUST include the [NIP-19](19.md) `nevent`, `note`, or `naddr` of the -event in the content. The embedded entity should match the type of the tag (in -other words, if embedding a `naddr`, the `q` tag should contain an address, not -an event id). - -Quote reposts also SHOULD include a `k` tag matching the stringified `kind` of -the quoted note. +event in the content. -- cgit v1.2.3 From 7df7deebf579fcf0c095fd6e974a4d54970cbec6 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 3 Oct 2024 09:39:03 -0700 Subject: Move generic reposts back to bottom for a simpler diff --- 18.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '18.md') diff --git a/18.md b/18.md index f1e3f8c..4bf39ef 100644 --- a/18.md +++ b/18.md @@ -18,15 +18,6 @@ to indicate where it can be fetched. The repost SHOULD include a `p` tag with the `pubkey` of the event being reposted. -## Generic Reposts - -Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` -as a "generic repost", that can include any kind of event inside other than -`kind 1`. - -`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number -of the reposted event as its value. - ## Quote Reposts Quote reposts are `kind 1` events with an embedded `q` tag of the note being @@ -41,3 +32,12 @@ of the `mark` argument. Quote reposts MUST include the [NIP-19](19.md) `nevent`, `note`, or `naddr` of the event in the content. + +## Generic Reposts + +Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` +as a "generic repost", that can include any kind of event inside other than +`kind 1`. + +`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number +of the reposted event as its value. -- cgit v1.2.3 From 4769b1658a226444e1c6d8d84b0bc6e00bca15a3 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 7 Oct 2024 08:56:52 -0700 Subject: Refer to nip 21 instead of 19 --- 18.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '18.md') diff --git a/18.md b/18.md index 4bf39ef..41c9442 100644 --- a/18.md +++ b/18.md @@ -30,7 +30,7 @@ of the `mark` argument. `["q", , , ]` -Quote reposts MUST include the [NIP-19](19.md) `nevent`, `note`, or `naddr` of the +Quote reposts MUST include the [NIP-21](21.md) `nevent`, `note`, or `naddr` of the event in the content. ## Generic Reposts -- cgit v1.2.3 From c0568fe8cc31961fbfc783805af8942060b455e2 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 31 Oct 2024 10:09:43 -0700 Subject: Add explicit support for address quotes --- 18.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to '18.md') diff --git a/18.md b/18.md index 41c9442..448171f 100644 --- a/18.md +++ b/18.md @@ -30,6 +30,11 @@ of the `mark` argument. `["q", , , ]` +When quoting an event by address, `q` tags should follow conventions for `a` tags, +as described in [NIP 01](./01.md). + +`["q", , ]` + Quote reposts MUST include the [NIP-21](21.md) `nevent`, `note`, or `naddr` of the event in the content. -- cgit v1.2.3 From 5bcb2d834a8533ae657606a42d91169661e06369 Mon Sep 17 00:00:00 2001 From: Asai Toshiya Date: Fri, 1 Nov 2024 08:22:50 +0900 Subject: Revert "Merge pull request #1558 from coracle-social/quote-a" This reverts commit 4aa46562eb6d2abc6127fa8c2c9f3da7a098e2f6, reversing changes made to 8e2523e331cbcc7f7247590497a0db607c45cf80. --- 18.md | 5 ----- 1 file changed, 5 deletions(-) (limited to '18.md') diff --git a/18.md b/18.md index 448171f..41c9442 100644 --- a/18.md +++ b/18.md @@ -30,11 +30,6 @@ of the `mark` argument. `["q", , , ]` -When quoting an event by address, `q` tags should follow conventions for `a` tags, -as described in [NIP 01](./01.md). - -`["q", , ]` - Quote reposts MUST include the [NIP-21](21.md) `nevent`, `note`, or `naddr` of the event in the content. -- cgit v1.2.3