mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
Add new section Custom Emoji Reaction
This commit is contained in:
parent
a1cd2bd809
commit
00ec0c83ac
22
25.md
22
25.md
|
@ -47,3 +47,25 @@ func make_like_event(pubkey: String, privkey: String, liked: NostrEvent) -> Nost
|
||||||
ev.sign(privkey: privkey)
|
ev.sign(privkey: privkey)
|
||||||
return ev
|
return ev
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Custom Emoji Reaction
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
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
|
||||||
|
{
|
||||||
|
"kind": 7,
|
||||||
|
"content": ":soapbox:",
|
||||||
|
"tags": [
|
||||||
|
["emoji", "soapbox", "https://gleasonator.com/emoji/Gleasonator/soapbox.png"]
|
||||||
|
],
|
||||||
|
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
|
||||||
|
"created_at": 1682790000
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The content can be set only one `:shortcode:`. And emoji tag should be one.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user