own_votes Nullable
This commit is contained in:
parent
343b02bf19
commit
b02b031d97
|
@ -1412,11 +1412,11 @@ function pollParse(poll, acct_id, emojis) {
|
||||||
var refresh = `<a onclick="voteMastodonrefresh('${acct_id}','${poll.id}','${rand}')" class="pointer">
|
var refresh = `<a onclick="voteMastodonrefresh('${acct_id}','${poll.id}','${rand}')" class="pointer">
|
||||||
${lang.lang_manager_refresh}
|
${lang.lang_manager_refresh}
|
||||||
</a>`
|
</a>`
|
||||||
if (poll.voted && poll.own_votes.length) {
|
if (poll.voted && minechoice.length) {
|
||||||
var myvote = lang.lang_parse_voted
|
var myvote = lang.lang_parse_voted
|
||||||
if (poll.expired) myvote = myvote + '/' + lang.lang_parse_endedvote
|
if (poll.expired) myvote = myvote + '/' + lang.lang_parse_endedvote
|
||||||
var result_hide = ''
|
var result_hide = ''
|
||||||
} else if (poll.voted && !poll.own_votes.length) {
|
} else if (poll.voted && !minechoice.length) {
|
||||||
var myvote = lang.lang_parse_myvote
|
var myvote = lang.lang_parse_myvote
|
||||||
if (poll.expired) myvote = myvote + '/' + lang.lang_parse_endedvote
|
if (poll.expired) myvote = myvote + '/' + lang.lang_parse_endedvote
|
||||||
var result_hide = ''
|
var result_hide = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user