mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Show votes count in translated text
This commit is contained in:
parent
6ddbcacd76
commit
6755626259
1 changed files with 10 additions and 1 deletions
|
@ -1169,7 +1169,16 @@ function Status({
|
||||||
getHTMLText(content) +
|
getHTMLText(content) +
|
||||||
(poll?.options?.length
|
(poll?.options?.length
|
||||||
? `\n\nPoll:\n${poll.options
|
? `\n\nPoll:\n${poll.options
|
||||||
.map((option) => `- ${option.title}`)
|
.map(
|
||||||
|
(option) =>
|
||||||
|
`- ${option.title}${
|
||||||
|
option.votesCount >= 0
|
||||||
|
? ` (${option.votesCount} vote${
|
||||||
|
option.votesCount !== 1 ? 's' : ''
|
||||||
|
})`
|
||||||
|
: ''
|
||||||
|
}`,
|
||||||
|
)
|
||||||
.join('\n')}`
|
.join('\n')}`
|
||||||
: '')
|
: '')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue