mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Save the 'collapse_threads' from the web UI.
This commit is contained in:
parent
bf6dd8016f
commit
1548fb0ff8
1 changed files with 4 additions and 0 deletions
4
html.c
4
html.c
|
@ -3595,6 +3595,10 @@ int html_post_handler(const xs_dict *req, const char *q_path,
|
||||||
snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_TRUE));
|
snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_TRUE));
|
||||||
else
|
else
|
||||||
snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_FALSE));
|
snac.config = xs_dict_set(snac.config, "auto_boost", xs_stock(XSTYPE_FALSE));
|
||||||
|
if ((v = xs_dict_get(p_vars, "collapse_threads")) != NULL && strcmp(v, "on") == 0)
|
||||||
|
snac.config = xs_dict_set(snac.config, "collapse_threads", xs_stock(XSTYPE_TRUE));
|
||||||
|
else
|
||||||
|
snac.config = xs_dict_set(snac.config, "collapse_threads", xs_stock(XSTYPE_FALSE));
|
||||||
|
|
||||||
if ((v = xs_dict_get(p_vars, "metadata")) != NULL) {
|
if ((v = xs_dict_get(p_vars, "metadata")) != NULL) {
|
||||||
/* split the metadata and store it as a dict */
|
/* split the metadata and store it as a dict */
|
||||||
|
|
Loading…
Reference in a new issue