aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2022-01-09 18:37:01 +0000
committerShpuld Shpludson <shp@cock.li>2022-01-09 18:37:01 +0000
commitb13d8f7e6339e877a38a28008630dc8ec64abcdf (patch)
tree56e2103fcb52640a17847cb97a726f9d6d3198ee /src/components/poll
parent51d3d8d255de221f7ac99e41f2f8e56c7d6a21a9 (diff)
parent756f7bf7c2ee1beb7b43227271942130fd03c7cb (diff)
Merge branch 'develop' into 'master'
Update MASTER for 2.4.2 See merge request pleroma/pleroma-fe!1421
Diffstat (limited to 'src/components/poll')
-rw-r--r--src/components/poll/poll.js10
-rw-r--r--src/components/poll/poll.vue14
2 files changed, 17 insertions, 7 deletions
diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js
index 98db5582..a69b7886 100644
--- a/src/components/poll/poll.js
+++ b/src/components/poll/poll.js
@@ -1,10 +1,14 @@
-import Timeago from '../timeago/timeago.vue'
+import Timeago from 'components/timeago/timeago.vue'
+import RichContent from 'components/rich_content/rich_content.jsx'
import { forEach, map } from 'lodash'
export default {
name: 'Poll',
- props: ['basePoll'],
- components: { Timeago },
+ props: ['basePoll', 'emoji'],
+ components: {
+ Timeago,
+ RichContent
+ },
data () {
return {
loading: false,
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 187d1829..63b44e4f 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -17,8 +17,11 @@
<span class="result-percentage">
{{ percentageForOption(option.votes_count) }}%
</span>
- <!-- eslint-disable-next-line vue/no-v-html -->
- <span v-html="option.title_html" />
+ <RichContent
+ :html="option.title_html"
+ :handle-links="false"
+ :emoji="emoji"
+ />
</div>
<div
class="result-fill"
@@ -42,8 +45,11 @@
:value="index"
>
<label class="option-vote">
- <!-- eslint-disable-next-line vue/no-v-html -->
- <div v-html="option.title_html" />
+ <RichContent
+ :html="option.title_html"
+ :handle-links="false"
+ :emoji="emoji"
+ />
</label>
</div>
</div>