diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-12-05 10:10:48 +0000 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2024-02-23 20:52:15 -0300 |
| commit | 5e0c0b5fee21f272d983fe68d5ec3109369d4a72 (patch) | |
| tree | eb9c74902756ba11205f2de777b8cfd543bdf43a | |
| parent | 363212b375e7f2c7692e5f46452e9feae7b4a322 (diff) | |
add kind:12
| -rw-r--r-- | 29.md | 21 |
1 files changed, 18 insertions, 3 deletions
| @@ -4,7 +4,7 @@ NIP-29 | |||
| 4 | Relay-based Groups | 4 | Relay-based Groups |
| 5 | ------------------ | 5 | ------------------ |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:fiatjaf` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | 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. | 9 | 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. |
| 10 | 10 | ||
| @@ -38,9 +38,9 @@ Relays must strip the signature of messages in groups that are `private` so they | |||
| 38 | 38 | ||
| 39 | ## Event definitions | 39 | ## Event definitions |
| 40 | 40 | ||
| 41 | - *text note* (`kind:11`) | 41 | - *text root note* (`kind:11`) |
| 42 | 42 | ||
| 43 | This is the basic unit of a "microblog" text note sent to a group. | 43 | This is the basic unit of a "microblog" root text note sent to a group. |
| 44 | 44 | ||
| 45 | ```js | 45 | ```js |
| 46 | "kind": 11, | 46 | "kind": 11, |
| @@ -52,6 +52,21 @@ This is the basic unit of a "microblog" text note sent to a group. | |||
| 52 | ... | 52 | ... |
| 53 | ``` | 53 | ``` |
| 54 | 54 | ||
| 55 | - *text reply note* (`kind:12`) | ||
| 56 | |||
| 57 | This is the basic unit of a "microblog" reply note sent to a group. | ||
| 58 | |||
| 59 | ```js | ||
| 60 | "kind": 12, | ||
| 61 | "content": "pizza is disgusting and you should be ashamed", | ||
| 62 | "tags": [ | ||
| 63 | ["h", "<group-id>"], | ||
| 64 | [ "e", "<reply-event-id>"], | ||
| 65 | ["previous", "<event-id>", "<event-id>", ...] | ||
| 66 | ] | ||
| 67 | ... | ||
| 68 | ``` | ||
| 69 | |||
| 55 | - *chat message* (`kind:9`) | 70 | - *chat message* (`kind:9`) |
| 56 | 71 | ||
| 57 | Similar to `kind:11`, this is the basic unit of a chat message sent to a group. | 72 | Similar to `kind:11`, this is the basic unit of a chat message sent to a group. |