summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-06-28 21:19:31 +0200
committerGravatar default2023-06-28 21:19:31 +0200
commit4b1f060be8dff81ed81c99a4c68de2e1b4727b62 (patch)
tree68e60c163c597a104198f25e6c009d2855971416 /html.c
parentAdded some error control to pinning. (diff)
downloadsnac2-4b1f060be8dff81ed81c99a4c68de2e1b4727b62.tar.gz
snac2-4b1f060be8dff81ed81c99a4c68de2e1b4727b62.tar.xz
snac2-4b1f060be8dff81ed81c99a4c68de2e1b4727b62.zip
Add a pin emoji to pinned posts.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/html.c b/html.c
index 107542a..278209a 100644
--- a/html.c
+++ b/html.c
@@ -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\"> &#128204; </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\"> &#128499; </span>", L("Poll")); 852 xs *f = xs_fmt("<span title=\"%s\"> &#128499; </span>", L("Poll"));