From 0164ac902b3314f8671d4b18429630edcef7417d Mon Sep 17 00:00:00 2001 From: default Date: Sun, 2 Oct 2022 09:32:50 +0200 Subject: [PATCH] Minor tweak. --- html.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/html.c b/html.c index 1e2248c..2634652 100644 --- a/html.c +++ b/html.c @@ -196,11 +196,13 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg) if (!is_msg_public(snac, msg)) s = xs_str_cat(s, " 🔒"); - if ((v = xs_dict_get(msg, "published")) == NULL) - v = " "; + if ((v = xs_dict_get(msg, "published")) == NULL) { + s = xs_str_cat(s, "
\n\n"); + } + else { + xs *s1 = xs_fmt( + "
\n\n", v); - { - xs *s1 = xs_fmt("
\n\n", v); s = xs_str_cat(s, s1); } }