From 0023ca818c759f46cd357a812dca98abfd9824b8 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 7 Feb 2025 14:59:59 -0500 Subject: [PATCH] Removes mention marker from NIP-10 in support of `q` tags (#1750) --- 10.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/10.md b/10.md index 1aefb227..9fd4415e 100644 --- a/10.md +++ b/10.md @@ -12,7 +12,15 @@ This NIP defines `kind:1` as a simple plaintext note. The `.content` property contains some human-readable text. -`e` and `p` tags can be used to define note threads, replies and mentions. +`e` tags can be used to define note thread roots and replies. They SHOULD be sorted by the reply stack from root to the direct parent. + +`q` tags MAY be used when citing events in the `.content` with [NIP-21](21.md). + +```json +["q", " or ", "", ""] +``` + +Authors of the `e` and `q` tags SHOULD be added as `p` tags to notify of a new reply or quote. Markup languages such as markdown and HTML SHOULD NOT be used. @@ -26,10 +34,10 @@ Where: * `` is the id of the event being referenced. * `` is the URL of a recommended relay associated with the reference. Clients SHOULD add a valid `` field, but may instead leave it as `""`. - * `` is optional and if present is one of `"reply"`, `"root"`, or `"mention"`. + * `` is optional and if present is one of `"reply"`, `"root"`. * `` is optional, SHOULD be the pubkey of the author of the referenced event -Those marked with `"reply"` denote the id of the reply event being responded to. Those marked with `"root"` denote the root id of the reply thread being responded to. For top level replies (those replying directly to the root event), only the `"root"` marker should be used. Those marked with `"mention"` denote a quoted or reposted event id. +Those marked with `"reply"` denote the id of the reply event being responded to. Those marked with `"root"` denote the root id of the reply thread being responded to. For top level replies (those replying directly to the root event), only the `"root"` marker should be used. A direct reply to the root of a thread should have a single marked "e" tag of type "root".