summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-02 09:32:50 +0200
committerdefault <nobody@localhost>2022-10-02 09:32:50 +0200
commit0164ac902b3314f8671d4b18429630edcef7417d (patch)
tree6c3a2baae8005d765a2b01d0b3473ad9b13b1f05 /html.c
parent849913dc5987997f9db96e23c7acf9c29f9c6d7f (diff)
Minor tweak.
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files 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, " <span title=\"private\">&#128274;</span>");
- if ((v = xs_dict_get(msg, "published")) == NULL)
- v = "&nbsp;";
+ if ((v = xs_dict_get(msg, "published")) == NULL) {
+ s = xs_str_cat(s, "<br>\n<time>&nbsp;</time>\n");
+ }
+ else {
+ xs *s1 = xs_fmt(
+ "<br>\n<time class=\"dt-published snac-pubdate\">%s</time>\n", v);
- {
- xs *s1 = xs_fmt("<br>\n<time class=\"dt-published snac-pubdate\">%s</time>\n", v);
s = xs_str_cat(s, s1);
}
}