mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Add a check Unicode char to mark those polls that were voted by the user.
This commit is contained in:
parent
a7881f0ab6
commit
47cb5f0b28
1 changed files with 6 additions and 0 deletions
6
html.c
6
html.c
|
@ -815,6 +815,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
|
|||
/* add the ballot box emoji */
|
||||
xs *f = xs_fmt("<span title=\"%s\"> 🗳 </span>", L("Poll"));
|
||||
s = xs_str_cat(s, f);
|
||||
|
||||
if (was_question_voted(snac, id)) {
|
||||
/* add a check to show this poll was voted */
|
||||
xs *f2 = xs_fmt("<span title=\"%s\"> ✓ </span>", L("Voted"));
|
||||
s = xs_str_cat(s, f2);
|
||||
}
|
||||
}
|
||||
|
||||
/* if this is our post, add the score */
|
||||
|
|
Loading…
Reference in a new issue