From a6a71cd48b26384124dca8e40b64257fb315474a Mon Sep 17 00:00:00 2001 From: arthurfranca Date: Thu, 16 May 2024 15:25:32 -0300 Subject: [PATCH] Add K tag --- 22.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/22.md b/22.md index 70b5a66d..de3d9ee1 100644 --- a/22.md +++ b/22.md @@ -26,6 +26,9 @@ If commenting on an `https://abc.com/articles/1` article the `k` tag is set to " The `k` tag is useful to fetch top-level comments about events of specific kinds (or domains), for example, by filtering with `{ "#k": ["30023"], "kinds": [1111] }`. +An uppercase `K` tag must also be present. The difference is that it is set to the original post (the one starting the thread) kind. +This way a client can request all comments related to the kind it supports, not only the top-level comments. + ### Threads There is always an `o` tag pointing to the original post that started the thread. @@ -56,13 +59,15 @@ the client supports the [NIP-65](65.md) relay usage spec, ```js { - w: 1111, + kind: 1111, content: 'Agree with your comment.', tags: [ // referencing the OP ["o", "https://abc.com/articles/1/"], // replying to a parent kind:1111 comment ["r", "i:1111:f7234bd4c1394dda46d09f35bd384dd30cc552ad5541990f98844fb06676e9ca:5c83da77af1dec6d7289834998ad7aafbd9e2191396d75ec3cc27f5a77226f36"], + // the OP "kind"; for an url, the kind is its domain + ["K", "https://abc.com"] // the parent kind ["k", "1111"] ] @@ -78,6 +83,8 @@ the client supports the [NIP-65](65.md) relay usage spec, // top-level comments have the same o and r tags ["o", "a:30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7"], ["r", "a:30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7"], + // the OP kind + ["K", "30023"] // the parent kind ["k", "30023"], // the nostr:npub1... mentioned on .content