diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2025-02-19 10:36:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 10:36:45 -0500 |
| commit | 0f12cf111f0037eff402d9634a0a96f5cc1cd9d4 (patch) | |
| tree | 6cc6bdd56258cbbbcd18f714dbdbe9752d067a8f | |
| parent | 619e3bea57860d4c3b1d3f97587727a94b12a82e (diff) | |
Updates NIP-53 live chat to remove markers and add `q` tags (#1747)
| -rw-r--r-- | 53.md | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -63,7 +63,7 @@ This feature is important to avoid malicious event owners adding large account h | |||
| 63 | 63 | ||
| 64 | ### Live Chat Message | 64 | ### Live Chat Message |
| 65 | 65 | ||
| 66 | Event `kind:1311` is live chat's channel message. Clients MUST include the `a` tag of the activity with a `root` marker. Other Kind-1 tags such as `reply` and `mention` can also be used. | 66 | Event `kind:1311` is live chat's channel message. Clients MUST include the `a` tag of the activity. An `e` tag denotes the direct parent message this post is replying to. |
| 67 | 67 | ||
| 68 | ```jsonc | 68 | ```jsonc |
| 69 | { | 69 | { |
| @@ -76,6 +76,12 @@ Event `kind:1311` is live chat's channel message. Clients MUST include the `a` t | |||
| 76 | } | 76 | } |
| 77 | ``` | 77 | ``` |
| 78 | 78 | ||
| 79 | `q` tags MAY be used when citing events in the `.content` with [NIP-21](21.md). | ||
| 80 | |||
| 81 | ```json | ||
| 82 | ["q", "<event-id> or <event-address>", "<relay-url>", "<pubkey-if-a-regular-event>"] | ||
| 83 | ``` | ||
| 84 | |||
| 79 | Hosts may choose to pin one or more live chat messages by updating the `pinned` tags in the live event kind `30311`. | 85 | Hosts may choose to pin one or more live chat messages by updating the `pinned` tags in the live event kind `30311`. |
| 80 | 86 | ||
| 81 | ## Use Cases | 87 | ## Use Cases |