mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-14 03:16:22 +00: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
|
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.
|
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
|
## 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
|
```js
|
||||||
"kind": 11,
|
"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`)
|
- *chat message* (`kind:9`)
|
||||||
|
|
||||||
Similar to `kind:11`, this is the basic unit of a chat message sent to a group.
|
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