From 4b1f060be8dff81ed81c99a4c68de2e1b4727b62 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 28 Jun 2023 21:19:31 +0200 Subject: [PATCH] Add a pin emoji to pinned posts. --- html.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, s = xs_str_cat(s, "
"); /** **/ + if (is_pinned(snac, id)) { + /* add a pin emoji */ + xs *f = xs_fmt(" 📌 ", L("Pinned")); + s = xs_str_cat(s, f); + } + if (strcmp(type, "Question") == 0) { /* add the ballot box emoji */ xs *f = xs_fmt(" 🗳 ", L("Poll"));