From 9b3862de69cce4eb1d9a797de21efe98e62a97a7 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 9 Apr 2025 20:44:01 -0600 Subject: [PATCH] mastoapi: comma the poll vote numbers --- src/views/mastoapi.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastoapi.nim b/src/views/mastoapi.nim index 18d0bef..e4e0497 100644 --- a/src/views/mastoapi.nim +++ b/src/views/mastoapi.nim @@ -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 &= &"{poll.options[i]} ({val}, {percStr})\n{bar}{notBar}\n" + content &= &"{poll.options[i]} ({insertSep($val, ',')}, {percStr})\n{bar}{notBar}\n" content &= &"\n{insertSep($poll.votes, ',')} votes • {poll.status}"