-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to reconcile kind 9/209 and 11/309
- Loading branch information
Jon Staab
committed
Nov 20, 2024
1 parent
5e99b6f
commit 7e47fbd
Showing
4 changed files
with
64 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
NIP-XX | ||
====== | ||
|
||
Chats | ||
----- | ||
|
||
`draft` `optional` | ||
|
||
A chat message is a `kind 9` event. | ||
|
||
```json | ||
{ | ||
"kind": 9, | ||
"content": "GM", | ||
"tags": [] | ||
} | ||
``` | ||
|
||
A reply to a `kind 9` is an additional `kind 9` which quotes the parent using a `q` tag. | ||
|
||
```json | ||
{ | ||
"kind": 9, | ||
"content": "nostr:nevent1...\nyes", | ||
"tags": [ | ||
["q", <event-id>, <relay-url>, <pubkey>] | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
NIP-XX | ||
====== | ||
|
||
Threads | ||
------- | ||
|
||
`draft` `optional` | ||
|
||
A thread is a `kind 11` event. Threads SHOULD include a `title` with a summary | ||
of the thread's topic. | ||
|
||
```json | ||
{ | ||
"kind": 11, | ||
"content": "Good morning", | ||
"tags": [ | ||
["title", "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>] | ||
] | ||
} | ||
``` |