mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
remove kind:10 and note that kind:1111 could be used.
This commit is contained in:
parent
29696eb364
commit
39154346bb
41
29.md
41
29.md
|
@ -66,28 +66,7 @@ These are the events expected to be found in NIP-29 groups.
|
||||||
|
|
||||||
These events generally can be sent by all members of a group and they require the `h` tag to be present so they're attached to a specific group.
|
These events generally can be sent by all members of a group and they require the `h` tag to be present so they're attached to a specific group.
|
||||||
|
|
||||||
- *thread root post* (`kind:11`)
|
- _chat message_ (`kind:9`)
|
||||||
|
|
||||||
This is the basic unit of a forum-like root thread post sent to a group.
|
|
||||||
|
|
||||||
```jsonc
|
|
||||||
"kind": 11,
|
|
||||||
"content": "hello my friends lovers of pizza",
|
|
||||||
"tags": [
|
|
||||||
["h", "<group-id>"],
|
|
||||||
["previous", "<event-id-first-chars>", "<event-id-first-chars>", /*...*/]
|
|
||||||
]
|
|
||||||
// other fields...
|
|
||||||
```
|
|
||||||
|
|
||||||
- *threaded text reply* (`kind:12`)
|
|
||||||
|
|
||||||
This is the basic unit of a "microblog" reply note sent to a group. It's the same as `kind:11`, except for the fact that it must be used whenever it's in reply to some other note (either in reply to a `kind:11` or a `kind:12`). `kind:12` events SHOULD use NIP-10 markers, leaving an empty relay url:
|
|
||||||
|
|
||||||
* `["e", "<kind-11-root-id>", "", "root"]`
|
|
||||||
* `["e", "<kind-12-event-id>", "", "reply"]`
|
|
||||||
|
|
||||||
- *chat message* (`kind:9`)
|
|
||||||
|
|
||||||
This is the basic unit of a _chat message_ sent to a group.
|
This is the basic unit of a _chat message_ sent to a group.
|
||||||
|
|
||||||
|
@ -101,15 +80,23 @@ This is the basic unit of a _chat message_ sent to a group.
|
||||||
// other fields...
|
// other fields...
|
||||||
```
|
```
|
||||||
|
|
||||||
- *chat message threaded reply* (`kind:10`)
|
- _thread root post_ (`kind:11`)
|
||||||
|
|
||||||
Similar to `kind:12`, this is the basic unit of a chat message sent to a group. This is intended for in-chat threads that may be hidden by default. Not all in-chat replies MUST use `kind:10`, only when the intention is to create a hidden thread that isn't part of the normal flow of the chat (although clients are free to display those by default too).
|
This is the basic unit of a forum-like root thread post sent to a group.
|
||||||
|
|
||||||
`kind:10` SHOULD use NIP-10 markers, just like `kind:12`.
|
```jsonc
|
||||||
|
"kind": 11,
|
||||||
|
"content": "hello my friends lovers of pizza",
|
||||||
|
"tags": [
|
||||||
|
["h", "<group-id>"],
|
||||||
|
["previous", "<event-id-first-chars>", "<event-id-first-chars>", /*...*/]
|
||||||
|
]
|
||||||
|
// other fields...
|
||||||
|
```
|
||||||
|
|
||||||
- other events:
|
- _other events_:
|
||||||
|
|
||||||
Groups may also accept other events, like long-form articles, calendar, livestream, market announcements and so on. These should be as defined in their respective NIPs, with the addition of the `h` tag.
|
Groups may also accept other events, like [NIP-22](22.md) comments as threaded replies to both chats messages and threads, long-form articles, calendar, livestreams, market announcements and so on. These should be as defined in their respective NIPs, with the addition of the `h` tag.
|
||||||
|
|
||||||
### User-related group management events
|
### User-related group management events
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user