mastoapi: comma the poll vote numbers

This commit is contained in:
Cynthia Foxwell 2025-04-09 20:44:01 -06:00
parent 4064bd5c11
commit 9b3862de69
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string =
barLen = round((perc / 100) * 32).int
bar = repeat("", 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>"