From 461eb10b9bc05caaecc9f1db7ca69eb695c50a09 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 6 Oct 2026 15:48:14 +0200 Subject: [PATCH] Fixed an error that made deleting the notification email address impossible. --- html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html.c b/html.c index 2517d66..7d7a87b 100644 --- a/html.c +++ b/html.c @@ -6087,6 +6087,8 @@ int html_post_handler(const xs_dict *req, const char *q_path, } if ((v = xs_dict_get(p_vars, "email")) != NULL) snac.config = xs_dict_set(snac.config, "email", v); + else + snac.config = xs_dict_del(snac.config, "email"); if ((v = xs_dict_get(p_vars, "telegram_bot")) != NULL) snac.config = xs_dict_set(snac.config, "telegram_bot", v); if ((v = xs_dict_get(p_vars, "telegram_chat_id")) != NULL)