mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Minor tweak.
This commit is contained in:
parent
849913dc59
commit
0164ac902b
1 changed files with 6 additions and 4 deletions
10
html.c
10
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\">🔒</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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue