mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-09 00:28:51 +00:00
format(all): json formatting
This commit is contained in:
8
25.md
8
25.md
@@ -57,14 +57,14 @@ Reactions to a website
|
||||
|
||||
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.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 17,
|
||||
"content": "⭐",
|
||||
"tags": [
|
||||
["r", "https://example.com/"]
|
||||
],
|
||||
...other fields
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -79,14 +79,14 @@ The client may specify a custom emoji ([NIP-30](30.md)) `:shortcode:` in the
|
||||
reaction content. The client should refer to the emoji tag and render the
|
||||
content as an emoji if shortcode is specified.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 7,
|
||||
"content": ":soapbox:",
|
||||
"tags": [
|
||||
["emoji", "soapbox", "https://gleasonator.com/emoji/Gleasonator/soapbox.png"]
|
||||
],
|
||||
...other fields
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user