diff options
author | default <nobody@localhost> | 2023-06-28 21:19:31 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-28 21:19:31 +0200 |
commit | 4b1f060be8dff81ed81c99a4c68de2e1b4727b62 (patch) | |
tree | 68e60c163c597a104198f25e6c009d2855971416 | |
parent | af180685bdb430e90e3c4057c87595520ee385b4 (diff) |
Add a pin emoji to pinned posts.
-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, 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")); |