mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
Client may specify suggested reactions
This commit is contained in:
parent
4b9f13d983
commit
5b5fef5141
21
25.md
21
25.md
|
@ -74,3 +74,24 @@ content as an emoji if shortcode is specified.
|
|||
```
|
||||
|
||||
The content can be set only one `:shortcode:`. And emoji tag should be one.
|
||||
|
||||
Reaction Suggestions
|
||||
--------------------
|
||||
|
||||
A client may specify suggested reactions in the tags of any event. These may be
|
||||
emojis, or emoji shortcodes, with definitions included in tags as described above.
|
||||
Clients MAY prompt users to use these suggestions to react.
|
||||
```json
|
||||
{
|
||||
"kind": 1,
|
||||
"content": "Why did the chicken cross the road?",
|
||||
"tags": [
|
||||
["reaction", ":joy:"],
|
||||
["reaction", ":man-shrugging:"],
|
||||
["reaction", "bananas"],
|
||||
["emoji", "bananas", "https://example.com/emoji/bananas.png"]
|
||||
],
|
||||
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
|
||||
"created_at": 1682790000
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user