commit 461eb10
grunfink
·
2026-10-06 13:48:14 +0000 UTC
parent 69be886
Fixed an error that made deleting the notification email address impossible.
1 files changed,
+2,
-0
M
html.c
M
html.c
+2,
-0
1@@ -6087,6 +6087,8 @@ int html_post_handler(const xs_dict *req, const char *q_path,
2 }
3 if ((v = xs_dict_get(p_vars, "email")) != NULL)
4 snac.config = xs_dict_set(snac.config, "email", v);
5+ else
6+ snac.config = xs_dict_del(snac.config, "email");
7 if ((v = xs_dict_get(p_vars, "telegram_bot")) != NULL)
8 snac.config = xs_dict_set(snac.config, "telegram_bot", v);
9 if ((v = xs_dict_get(p_vars, "telegram_chat_id")) != NULL)