From 4d683302bc8afc80dc48ade7c2b1bb7428ad7384 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 12 Aug 2025 10:42:06 +0200 Subject: Post language is used in new posts. --- html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html.c b/html.c index 5574edb..476c7ac 100644 --- a/html.c +++ b/html.c @@ -4415,6 +4415,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, const char *edit_id = xs_dict_get(p_vars, "edit_id"); const char *post_date = xs_dict_get_def(p_vars, "post_date", ""); const char *post_time = xs_dict_get_def(p_vars, "post_time", ""); + const char *post_lang = xs_dict_get(p_vars, "post_lang"); int priv = !xs_is_null(xs_dict_get(p_vars, "mentioned_only")); int store_as_draft = !xs_is_null(xs_dict_get(p_vars, "is_draft")); xs *attach_list = xs_list_new(); @@ -4498,7 +4499,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs); } else - msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL, NULL); + msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, post_lang, NULL); if (sensitive != NULL) { msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); -- cgit v1.2.3