mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
add kind:12
This commit is contained in:
parent
363212b375
commit
5e0c0b5fee
21
29.md
21
29.md
|
@ -4,7 +4,7 @@ NIP-29
|
|||
Relay-based Groups
|
||||
------------------
|
||||
|
||||
`draft` `optional` `author:fiatjaf`
|
||||
`draft` `optional`
|
||||
|
||||
This NIP defines a standard for groups that are only writable by a closed set of users. They can be public for reading by external users or not.
|
||||
|
||||
|
@ -38,9 +38,9 @@ Relays must strip the signature of messages in groups that are `private` so they
|
|||
|
||||
## Event definitions
|
||||
|
||||
- *text note* (`kind:11`)
|
||||
- *text root note* (`kind:11`)
|
||||
|
||||
This is the basic unit of a "microblog" text note sent to a group.
|
||||
This is the basic unit of a "microblog" root text note sent to a group.
|
||||
|
||||
```js
|
||||
"kind": 11,
|
||||
|
@ -52,6 +52,21 @@ This is the basic unit of a "microblog" text note sent to a group.
|
|||
...
|
||||
```
|
||||
|
||||
- *text reply note* (`kind:12`)
|
||||
|
||||
This is the basic unit of a "microblog" reply note sent to a group.
|
||||
|
||||
```js
|
||||
"kind": 12,
|
||||
"content": "pizza is disgusting and you should be ashamed",
|
||||
"tags": [
|
||||
["h", "<group-id>"],
|
||||
[ "e", "<reply-event-id>"],
|
||||
["previous", "<event-id>", "<event-id>", ...]
|
||||
]
|
||||
...
|
||||
```
|
||||
|
||||
- *chat message* (`kind:9`)
|
||||
|
||||
Similar to `kind:11`, this is the basic unit of a chat message sent to a group.
|
||||
|
|
Loading…
Reference in New Issue
Block a user