diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -841,6 +841,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 841 | 841 | ||
| 842 | s = xs_str_cat(s, "<div class=\"snac-score\">"); /** **/ | 842 | s = xs_str_cat(s, "<div class=\"snac-score\">"); /** **/ |
| 843 | 843 | ||
| 844 | if (is_pinned(snac, id)) { | ||
| 845 | /* add a pin emoji */ | ||
| 846 | xs *f = xs_fmt("<span title=\"%s\"> 📌 </span>", L("Pinned")); | ||
| 847 | s = xs_str_cat(s, f); | ||
| 848 | } | ||
| 849 | |||
| 844 | if (strcmp(type, "Question") == 0) { | 850 | if (strcmp(type, "Question") == 0) { |
| 845 | /* add the ballot box emoji */ | 851 | /* add the ballot box emoji */ |
| 846 | xs *f = xs_fmt("<span title=\"%s\"> 🗳 </span>", L("Poll")); | 852 | xs *f = xs_fmt("<span title=\"%s\"> 🗳 </span>", L("Poll")); |