upleb.uk

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

summaryrefslogtreecommitdiff
path: root/7D.md
diff options
context:
space:
mode:
authorhodlbod <jstaab@protonmail.com>2024-11-21 06:55:23 -0800
committerGitHub <noreply@github.com>2024-11-21 11:55:23 -0300
commit1e47fd75572704b84cf484ce52394fc7ea7d4067 (patch)
treea95fbc731f2fdf9ac778a6a5be52b5389c2f8b2e /7D.md
parent84aeb10d395d0b9a3379c81aacf5b1ff4d675499 (diff)
Break out chat and threads from nip 29 (#1591)
Diffstat (limited to '7D.md')
-rw-r--r--7D.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/7D.md b/7D.md
new file mode 100644
index 0000000..d8509a6
--- /dev/null
+++ b/7D.md
@@ -0,0 +1,34 @@
1NIP-7D
2======
3
4Threads
5-------
6
7`draft` `optional`
8
9A thread is a `kind 11` event. Threads SHOULD include a `subject` with a summary
10of the thread's topic.
11
12```json
13{
14 "kind": 11,
15 "content": "Good morning",
16 "tags": [
17 ["subject", "GM"]
18 ]
19}
20```
21
22Replies to `kind 11` MUST use [NIP-22](./22.md) `kind 1111` comments. Replies should
23always be to the root `kind 11` to avoid arbitrarily nested reply hierarchies.
24
25```json
26{
27 "kind": 1111,
28 "content": "Cool beans",
29 "tags": [
30 ["K", "11"],
31 ["E", <event-id>, <relay-url>, <pubkey>]
32 ]
33}
34```