diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js
index 627ec291..95ae3f86 100644
--- a/app/js/tl/parse.js
+++ b/app/js/tl/parse.js
@@ -1391,6 +1391,7 @@ function client(name) {
}
//Poll Parser
function pollParse(poll, acct_id, emojis) {
+ var rand = randomStr(8)
var datetype = localStorage.getItem('datetype')
var anime = localStorage.getItem('animation')
if (anime == 'yes' || !anime) {
@@ -1408,7 +1409,7 @@ function pollParse(poll, acct_id, emojis) {
} else {
var minechoice = []
}
- var refresh = `
+ var refresh = `
${lang.lang_manager_refresh}
`
if (poll.voted && poll.own_votes.length) {
@@ -1423,11 +1424,11 @@ function pollParse(poll, acct_id, emojis) {
var myvote = lang.lang_parse_endedvote
var result_hide = ''
} else {
- var myvote = `${lang.lang_parse_vote}
`
+ var myvote = `${lang.lang_parse_vote}
`
if (choices[0].votes_count === 0 || choices[0].votes_count > 0) {
myvote =
myvote +
- `
+ `
${lang.lang_parse_unvoted}
`
}
@@ -1454,7 +1455,7 @@ function pollParse(poll, acct_id, emojis) {
}
if (!poll.voted && !poll.expired) {
var votesel =
- "voteSelMastodon('" + acct_id + "','" + poll.id + "'," + keyc + ',' + poll.multiple + ')'
+ `voteSelMastodon('${acct_id}','${poll.id}',${keyc},${poll.multiple}, this)`
var voteclass = 'pointer'
} else {
var votesel = ''
@@ -1469,9 +1470,9 @@ function pollParse(poll, acct_id, emojis) {
}
var openData = ''
if (choice.votes_count !== null) {
- openData = `${choice.votes_count}(${per}%)`
+ openData = `${voteit}${choice.votes_count}(${per}%)`
} else {
- openData = `?(-%)`
+ openData = `${voteit}?(-%)`
}
var choiceText = escapeHTML(choice.title)
if (emojis) {
@@ -1497,7 +1498,7 @@ function pollParse(poll, acct_id, emojis) {
pollHtml +
`