Break out chat and threads from nip 29 (#1591)

This commit is contained in:
hodlbod 2024-11-21 06:55:23 -08:00 committed by GitHub
parent 84aeb10d39
commit 1e47fd7557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 64 additions and 33 deletions

34
7D.md Normal file
View file

@ -0,0 +1,34 @@
NIP-7D
======
Threads
-------
`draft` `optional`
A thread is a `kind 11` event. Threads SHOULD include a `subject` with a summary
of the thread's topic.
```json
{
"kind": 11,
"content": "Good morning",
"tags": [
["subject", "GM"]
]
}
```
Replies to `kind 11` MUST use [NIP-22](./22.md) `kind 1111` comments. Replies should
always be to the root `kind 11` to avoid arbitrarily nested reply hierarchies.
```json
{
"kind": 1111,
"content": "Cool beans",
"tags": [
["K", "11"],
["E", <event-id>, <relay-url>, <pubkey>]
]
}
```