summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-12-09 13:38:56 +0100
committerGravatar grunfink2025-12-09 13:38:56 +0100
commit481c0315ef7ccd2eaf0ec9c6eaa17cbbd7efeb2c (patch)
tree48b71e21c3a400de869378584a9fe38cbd7be62a /html.c
parentNew query variable terse=anything. (diff)
downloadsnac2-481c0315ef7ccd2eaf0ec9c6eaa17cbbd7efeb2c.tar.gz
snac2-481c0315ef7ccd2eaf0ec9c6eaa17cbbd7efeb2c.tar.xz
snac2-481c0315ef7ccd2eaf0ec9c6eaa17cbbd7efeb2c.zip
If terse is set, history is also hidden.
Diffstat (limited to '')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 32ed057..8f7c4a9 100644
--- a/html.c
+++ b/html.c
@@ -3248,7 +3248,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
3248 3248
3249 if (list && user && read_only) { 3249 if (list && user && read_only) {
3250 /** history **/ 3250 /** history **/
3251 if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE) { 3251 if (xs_type(xs_dict_get(srv_config, "disable_history")) != XSTYPE_TRUE && !terse) {
3252 xs_html *ul = xs_html_tag("ul", NULL); 3252 xs_html *ul = xs_html_tag("ul", NULL);
3253 3253
3254 xs_html *history = xs_html_tag("div", 3254 xs_html *history = xs_html_tag("div",