Skip to content

Commit 0023ca8

Browse files
Removes mention marker from NIP-10 in support of q tags (nostr-protocol#1750)
1 parent 57c84cc commit 0023ca8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

10.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ This NIP defines `kind:1` as a simple plaintext note.
1212

1313
The `.content` property contains some human-readable text.
1414

15-
`e` and `p` tags can be used to define note threads, replies and mentions.
15+
`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.
16+
17+
`q` tags MAY be used when citing events in the `.content` with [NIP-21](21.md).
18+
19+
```json
20+
["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"]
21+
```
22+
23+
Authors of the `e` and `q` tags SHOULD be added as `p` tags to notify of a new reply or quote.
1624

1725
Markup languages such as markdown and HTML SHOULD NOT be used.
1826

@@ -26,10 +34,10 @@ Where:
2634

2735
* `<event-id>` is the id of the event being referenced.
2836
* `<relay-url>` is the URL of a recommended relay associated with the reference. Clients SHOULD add a valid `<relay-url>` field, but may instead leave it as `""`.
29-
* `<marker>` is optional and if present is one of `"reply"`, `"root"`, or `"mention"`.
37+
* `<marker>` is optional and if present is one of `"reply"`, `"root"`.
3038
* `<pubkey>` is optional, SHOULD be the pubkey of the author of the referenced event
3139

32-
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.
40+
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.
3341

3442
A direct reply to the root of a thread should have a single marked "e" tag of type "root".
3543

0 commit comments

Comments
 (0)