commit 1548fb0
default
·
2024-10-28 13:49:44 +0000 UTC
parent bf6dd80
Save the 'collapse_threads' from the web UI.
1 files changed,
+4,
-0
M
html.c
M
html.c
+4,
-0
1@@ -3595,6 +3595,10 @@ int html_post_handler(const xs_dict *req, const char *q_path,
2 snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_TRUE));
3 else
4 snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_FALSE));
5+ if ((v = xs_dict_get(p_vars, "collapse_threads")) != NULL && strcmp(v, "on") == 0)
6+ snac.config = xs_dict_set(snac.config, "collapse_threads", xs_stock(XSTYPE_TRUE));
7+ else
8+ snac.config = xs_dict_set(snac.config, "collapse_threads", xs_stock(XSTYPE_FALSE));
9
10 if ((v = xs_dict_get(p_vars, "metadata")) != NULL) {
11 /* split the metadata and store it as a dict */