commit 4d68330

grunfink  ·  2025-08-12 08:42:06 +0000 UTC
parent a30844b
Post language is used in new posts.
1 files changed,  +2, -1
M html.c
M html.c
+2, -1
 1@@ -4415,6 +4415,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
 2         const char *edit_id      = xs_dict_get(p_vars, "edit_id");
 3         const char *post_date    = xs_dict_get_def(p_vars, "post_date", "");
 4         const char *post_time    = xs_dict_get_def(p_vars, "post_time", "");
 5+        const char *post_lang    = xs_dict_get(p_vars, "post_lang");
 6         int priv             = !xs_is_null(xs_dict_get(p_vars, "mentioned_only"));
 7         int store_as_draft   = !xs_is_null(xs_dict_get(p_vars, "is_draft"));
 8         xs *attach_list      = xs_list_new();
 9@@ -4498,7 +4499,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
10                 enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs);
11             }
12             else
13-                msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL, NULL);
14+                msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, post_lang, NULL);
15 
16             if (sensitive != NULL) {
17                 msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE));