mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Add a pin emoji to pinned posts.
This commit is contained in:
parent
af180685bd
commit
4b1f060be8
1 changed files with 6 additions and 0 deletions
6
html.c
6
html.c
|
@ -841,6 +841,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
|
|||
|
||||
s = xs_str_cat(s, "<div class=\"snac-score\">"); /** **/
|
||||
|
||||
if (is_pinned(snac, id)) {
|
||||
/* add a pin emoji */
|
||||
xs *f = xs_fmt("<span title=\"%s\"> 📌 </span>", L("Pinned"));
|
||||
s = xs_str_cat(s, f);
|
||||
}
|
||||
|
||||
if (strcmp(type, "Question") == 0) {
|
||||
/* add the ballot box emoji */
|
||||
xs *f = xs_fmt("<span title=\"%s\"> 🗳 </span>", L("Poll"));
|
||||
|
|
Loading…
Reference in a new issue