diff options
| -rw-r--r-- | 17.md | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -21,7 +21,7 @@ Kind `14` is a chat message. `p` tags identify one or more receivers of the mess | |||
| 21 | "tags": [ | 21 | "tags": [ |
| 22 | ["p", "<receiver-1-pubkey>", "<relay-url>"], | 22 | ["p", "<receiver-1-pubkey>", "<relay-url>"], |
| 23 | ["p", "<receiver-2-pubkey>", "<relay-url>"], | 23 | ["p", "<receiver-2-pubkey>", "<relay-url>"], |
| 24 | ["e", "<kind-14-id>", "<relay-url>", "reply"] // if this is a reply | 24 | ["e", "<kind-14-id>", "<relay-url>"] // if this is a reply |
| 25 | ["subject", "<conversation-title>"], | 25 | ["subject", "<conversation-title>"], |
| 26 | // rest of tags... | 26 | // rest of tags... |
| 27 | ], | 27 | ], |
| @@ -31,7 +31,13 @@ Kind `14` is a chat message. `p` tags identify one or more receivers of the mess | |||
| 31 | 31 | ||
| 32 | `.content` MUST be plain text. Fields `id` and `created_at` are required. | 32 | `.content` MUST be plain text. Fields `id` and `created_at` are required. |
| 33 | 33 | ||
| 34 | Tags that mention, quote and assemble threading structures MUST follow [NIP-10](10.md). | 34 | An `e` tag denotes the direct parent message this post is replying to. |
| 35 | |||
| 36 | `q` tags MAY be used when citing events in the `.content` with [NIP-21](21.md). | ||
| 37 | |||
| 38 | ```json | ||
| 39 | ["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"] | ||
| 40 | ``` | ||
| 35 | 41 | ||
| 36 | Kind `14`s MUST never be signed. If it is signed, the message might leak to relays and become **fully public**. | 42 | Kind `14`s MUST never be signed. If it is signed, the message might leak to relays and become **fully public**. |
| 37 | 43 | ||