Supports Twemoji / CustomEmoji in poll (#3960)

* Supports Twemoji / CustomEmoji in poll

* extract emojis in polls
This commit is contained in:
MeiMei
2019-01-23 04:49:16 +09:00
committed by syuilo
parent 8bf9e87117
commit fa124abbe2
2 changed files with 8 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<div class="backdrop" :style="{ 'width': (showResult ? (choice.votes / total * 100) : 0) + '%' }"></div>
<span>
<template v-if="choice.isVoted"><fa icon="check"/></template>
<span>{{ choice.text }}</span>
<mfm :text="choice.text" :should-break="false" :plain-text="true" :custom-emojis="note.emojis"/>
<span class="votes" v-if="showResult">({{ $t('vote-count').replace('{}', choice.votes) }})</span>
</span>
</li>