diff options
| author | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
|---|---|---|
| committer | kehiy <kehiiiiya@gmail.com> | 2024-09-03 20:41:31 +0330 |
| commit | e6552476aa2e5ca7256be572a9aa226ec8a022ee (patch) | |
| tree | 46f14902bd2bfb85e5f3369ece456c46b697b1a2 /25.md | |
| parent | b4a2561df7325b8624bc5ffad154ec946ade2f1e (diff) | |
format(all): json formatting
Diffstat (limited to '25.md')
| -rw-r--r-- | 25.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -57,14 +57,14 @@ Reactions to a website | |||
| 57 | 57 | ||
| 58 | If the target of the reaction is a website, the reaction MUST be a `kind 17` event and MUST include an `r` tag with the website's URL. | 58 | If the target of the reaction is a website, the reaction MUST be a `kind 17` event and MUST include an `r` tag with the website's URL. |
| 59 | 59 | ||
| 60 | ```json | 60 | ```jsonc |
| 61 | { | 61 | { |
| 62 | "kind": 17, | 62 | "kind": 17, |
| 63 | "content": "⭐", | 63 | "content": "⭐", |
| 64 | "tags": [ | 64 | "tags": [ |
| 65 | ["r", "https://example.com/"] | 65 | ["r", "https://example.com/"] |
| 66 | ], | 66 | ], |
| 67 | ...other fields | 67 | // other fields... |
| 68 | } | 68 | } |
| 69 | ``` | 69 | ``` |
| 70 | 70 | ||
| @@ -79,14 +79,14 @@ The client may specify a custom emoji ([NIP-30](30.md)) `:shortcode:` in the | |||
| 79 | reaction content. The client should refer to the emoji tag and render the | 79 | reaction content. The client should refer to the emoji tag and render the |
| 80 | content as an emoji if shortcode is specified. | 80 | content as an emoji if shortcode is specified. |
| 81 | 81 | ||
| 82 | ```json | 82 | ```jsonc |
| 83 | { | 83 | { |
| 84 | "kind": 7, | 84 | "kind": 7, |
| 85 | "content": ":soapbox:", | 85 | "content": ":soapbox:", |
| 86 | "tags": [ | 86 | "tags": [ |
| 87 | ["emoji", "soapbox", "https://gleasonator.com/emoji/Gleasonator/soapbox.png"] | 87 | ["emoji", "soapbox", "https://gleasonator.com/emoji/Gleasonator/soapbox.png"] |
| 88 | ], | 88 | ], |
| 89 | ...other fields | 89 | // other fields... |
| 90 | } | 90 | } |
| 91 | ``` | 91 | ``` |
| 92 | 92 | ||