diff options
| author | Asai Toshiya <to.asai.60@gmail.com> | 2024-06-26 00:12:58 +0900 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2024-06-25 12:17:39 -0300 |
| commit | a551c5b69337021f83f7886ecfd211915737a771 (patch) | |
| tree | aea6c5520ee9324c4580781d1b6baa19891663d5 | |
| parent | 4aa18e329a8858ed46727b970c28652c5a0f7b43 (diff) | |
NIP-89: fix `REQ` examples
| -rw-r--r-- | 89.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -116,7 +116,7 @@ User B might see in their timeline an event referring to a `kind:31337` event (e | |||
| 116 | User B's client, not knowing how to handle a `kind:31337` might display the event using its `alt` tag (as described in NIP-31). When the user clicks on the event, the application queries for a handler for this `kind`: | 116 | User B's client, not knowing how to handle a `kind:31337` might display the event using its `alt` tag (as described in NIP-31). When the user clicks on the event, the application queries for a handler for this `kind`: |
| 117 | 117 | ||
| 118 | ```json | 118 | ```json |
| 119 | ["REQ", <id>, '[{ "kinds": [31989], "#d": ["31337"], 'authors': [<user>, <users-contact-list>] }]'] | 119 | ["REQ", <id>, { "kinds": [31989], "#d": ["31337"], "authors": [<user>, <users-contact-list>] }] |
| 120 | ``` | 120 | ``` |
| 121 | 121 | ||
| 122 | User B, who follows User A, sees that `kind:31989` event and fetches the `a`-tagged event for the app and handler information. | 122 | User B, who follows User A, sees that `kind:31989` event and fetches the `a`-tagged event for the app and handler information. |
| @@ -127,5 +127,5 @@ User B's client sees the application's `kind:31990` which includes the informati | |||
| 127 | Alternatively, users might choose to query directly for `kind:31990` for an event kind. Clients SHOULD be careful doing this and use spam-prevention mechanisms or querying high-quality restricted relays to avoid directing users to malicious handlers. | 127 | Alternatively, users might choose to query directly for `kind:31990` for an event kind. Clients SHOULD be careful doing this and use spam-prevention mechanisms or querying high-quality restricted relays to avoid directing users to malicious handlers. |
| 128 | 128 | ||
| 129 | ```json | 129 | ```json |
| 130 | ["REQ", <id>, '[{ "kinds": [31990], "#k": [<desired-event-kind>], 'authors': [...] }]'] | 130 | ["REQ", <id>, { "kinds": [31990], "#k": [<desired-event-kind>], "authors": [...] }] |
| 131 | ``` | 131 | ``` |