summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-08-29 07:25:28 +0200
committerdefault <nobody@localhost>2024-08-29 07:25:28 +0200
commit53581361326f6f87a92ea47f03b09dd7b8dea631 (patch)
tree18b652748bfebbe67ad1aa41df61ea3c2105c702 /html.c
parent1022f6db87ea196630972123601639beb190b4c3 (diff)
Show bookmarked posts with an emoji.
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/html.c b/html.c
index 93a7bff..8b30c6c 100644
--- a/html.c
+++ b/html.c
@@ -1523,6 +1523,14 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
xs_html_raw(" &#128204; ")));
}
+ if (user && is_bookmarked(user, id)) {
+ /* add a bookmark emoji */
+ xs_html_add(score,
+ xs_html_tag("span",
+ xs_html_attr("title", L("Bookmarked")),
+ xs_html_raw(" &#128278; ")));
+ }
+
if (strcmp(type, "Question") == 0) {
/* add the ballot box emoji */
xs_html_add(score,