commit 47cb5f0
default
·
2023-06-01 15:28:38 +0000 UTC
parent a7881f0
Add a check Unicode char to mark those polls that were voted by the user.
1 files changed,
+6,
-0
M
html.c
M
html.c
+6,
-0
1@@ -815,6 +815,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
2 /* add the ballot box emoji */
3 xs *f = xs_fmt("<span title=\"%s\"> 🗳 </span>", L("Poll"));
4 s = xs_str_cat(s, f);
5+
6+ if (was_question_voted(snac, id)) {
7+ /* add a check to show this poll was voted */
8+ xs *f2 = xs_fmt("<span title=\"%s\"> ✓ </span>", L("Voted"));
9+ s = xs_str_cat(s, f2);
10+ }
11 }
12
13 /* if this is our post, add the score */