mastoapi: comma the poll vote numbers
This commit is contained in:
parent
4064bd5c11
commit
9b3862de69
@ -18,7 +18,7 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string =
|
|||||||
barLen = round((perc / 100) * 32).int
|
barLen = round((perc / 100) * 32).int
|
||||||
bar = repeat("█", barLen)
|
bar = repeat("█", barLen)
|
||||||
notBar = repeat(" ", 32 - barLen)
|
notBar = repeat(" ", 32 - barLen)
|
||||||
content &= &"<b>{poll.options[i]}</b> ({val}, {percStr})\n<code>{bar}{notBar}</code>\n"
|
content &= &"<b>{poll.options[i]}</b> ({insertSep($val, ',')}, {percStr})\n<code>{bar}{notBar}</code>\n"
|
||||||
|
|
||||||
content &= &"\n{insertSep($poll.votes, ',')} votes • {poll.status}</blockquote>"
|
content &= &"\n{insertSep($poll.votes, ',')} votes • {poll.status}</blockquote>"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user