diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2024-12-19 10:15:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-19 10:15:46 -0500 |
| commit | f7d97f3f40dc6677e6f996ffff431142ffe05810 (patch) | |
| tree | 2eaa8c8628cc9a4b05811ed3869e21221fd85307 /7D.md | |
| parent | d5b77b6d7348061cd0f16adc35e4d02a3a0b7380 (diff) | |
| parent | 561059ff85c171b87a12b8381b724b4afc569a97 (diff) | |
Merge branch 'master' into draft-event
Diffstat (limited to '7D.md')
| -rw-r--r-- | 7D.md | 34 |
1 files changed, 34 insertions, 0 deletions
| @@ -0,0 +1,34 @@ | |||
| 1 | NIP-7D | ||
| 2 | ====== | ||
| 3 | |||
| 4 | Threads | ||
| 5 | ------- | ||
| 6 | |||
| 7 | `draft` `optional` | ||
| 8 | |||
| 9 | A thread is a `kind 11` event. Threads SHOULD include a `subject` with a summary | ||
| 10 | of the thread's topic. | ||
| 11 | |||
| 12 | ```json | ||
| 13 | { | ||
| 14 | "kind": 11, | ||
| 15 | "content": "Good morning", | ||
| 16 | "tags": [ | ||
| 17 | ["subject", "GM"] | ||
| 18 | ] | ||
| 19 | } | ||
| 20 | ``` | ||
| 21 | |||
| 22 | Replies to `kind 11` MUST use [NIP-22](./22.md) `kind 1111` comments. Replies should | ||
| 23 | always 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 | ``` | ||