commit 4b1f060

default  ·  2023-06-28 19:19:31 +0000 UTC
parent af18068
Add a pin emoji to pinned posts.
1 files changed,  +6, -0
M html.c
M html.c
+6, -0
 1@@ -841,6 +841,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
 2 
 3     s = xs_str_cat(s, "<div class=\"snac-score\">"); /** **/
 4 
 5+    if (is_pinned(snac, id)) {
 6+        /* add a pin emoji */
 7+        xs *f = xs_fmt("<span title=\"%s\"> &#128204; </span>", L("Pinned"));
 8+        s = xs_str_cat(s, f);
 9+    }
10+
11     if (strcmp(type, "Question") == 0) {
12         /* add the ballot box emoji */
13         xs *f = xs_fmt("<span title=\"%s\"> &#128499; </span>", L("Poll"));