diff options
author | default <nobody@localhost> | 2022-10-02 09:32:50 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-02 09:32:50 +0200 |
commit | 0164ac902b3314f8671d4b18429630edcef7417d (patch) | |
tree | 6c3a2baae8005d765a2b01d0b3473ad9b13b1f05 /html.c | |
parent | 849913dc5987997f9db96e23c7acf9c29f9c6d7f (diff) |
Minor tweak.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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\">🔒</span>"); - if ((v = xs_dict_get(msg, "published")) == NULL) - v = " "; + if ((v = xs_dict_get(msg, "published")) == NULL) { + s = xs_str_cat(s, "<br>\n<time> </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); } } |