mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Fixed history disabling.
This commit is contained in:
parent
4afb384024
commit
b8e5a00eab
1 changed files with 23 additions and 18 deletions
7
html.c
7
html.c
|
@ -1600,7 +1600,11 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
|
|||
|
||||
s = xs_str_cat(s, "</div>\n");
|
||||
|
||||
if (list && user && local && xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) {
|
||||
if (list && user && local) {
|
||||
if (xs_type(xs_dict_get(srv_config, "disable_history")) == XSTYPE_TRUE) {
|
||||
s = xs_str_cat(s, "<!-- history disabled -->\n");
|
||||
}
|
||||
else {
|
||||
xs *s1 = xs_fmt(
|
||||
"<div class=\"snac-history\">\n"
|
||||
"<p class=\"snac-history-title\">%s</p><ul>\n",
|
||||
|
@ -1624,6 +1628,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local,
|
|||
|
||||
s = xs_str_cat(s, "</ul></div>\n");
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
xs *s1 = xs_fmt("<!-- %lf seconds -->\n", ftime() - t);
|
||||
|
|
Loading…
Reference in a new issue