mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Reaction polling
This commit is contained in:
parent
946d8de0ad
commit
3465f0e156
19
25.md
19
25.md
|
@ -71,3 +71,22 @@ content as an emoji if shortcode is specified.
|
||||||
```
|
```
|
||||||
|
|
||||||
The content can be set only one `:shortcode:`. And emoji tag should be one.
|
The content can be set only one `:shortcode:`. And emoji tag should be one.
|
||||||
|
|
||||||
|
Polling
|
||||||
|
-------
|
||||||
|
|
||||||
|
Authors can request a reaction poll any event kind by using the tag `poll`. Supporting clients SHOULD present pool options as reaction options, tally and render results as part of the display of the event.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"content": "Do you folks like pizza?",
|
||||||
|
"tags": [
|
||||||
|
["poll", "👍", "👎"]
|
||||||
|
],
|
||||||
|
...other fields
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user