diff options
| author | 2025-08-12 10:42:06 +0200 | |
|---|---|---|
| committer | 2025-08-12 10:42:06 +0200 | |
| commit | 4d683302bc8afc80dc48ade7c2b1bb7428ad7384 (patch) | |
| tree | e7e761f23372b01490ffc5759caf28213d05e2f8 /html.c | |
| parent | Show a dropdown with the user configured languages (still unused). (diff) | |
| download | penes-snac2-4d683302bc8afc80dc48ade7c2b1bb7428ad7384.tar.gz penes-snac2-4d683302bc8afc80dc48ade7c2b1bb7428ad7384.tar.xz penes-snac2-4d683302bc8afc80dc48ade7c2b1bb7428ad7384.zip | |
Post language is used in new posts.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -4415,6 +4415,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 4415 | const char *edit_id = xs_dict_get(p_vars, "edit_id"); | 4415 | const char *edit_id = xs_dict_get(p_vars, "edit_id"); |
| 4416 | const char *post_date = xs_dict_get_def(p_vars, "post_date", ""); | 4416 | const char *post_date = xs_dict_get_def(p_vars, "post_date", ""); |
| 4417 | const char *post_time = xs_dict_get_def(p_vars, "post_time", ""); | 4417 | const char *post_time = xs_dict_get_def(p_vars, "post_time", ""); |
| 4418 | const char *post_lang = xs_dict_get(p_vars, "post_lang"); | ||
| 4418 | int priv = !xs_is_null(xs_dict_get(p_vars, "mentioned_only")); | 4419 | int priv = !xs_is_null(xs_dict_get(p_vars, "mentioned_only")); |
| 4419 | int store_as_draft = !xs_is_null(xs_dict_get(p_vars, "is_draft")); | 4420 | int store_as_draft = !xs_is_null(xs_dict_get(p_vars, "is_draft")); |
| 4420 | xs *attach_list = xs_list_new(); | 4421 | xs *attach_list = xs_list_new(); |
| @@ -4498,7 +4499,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, | |||
| 4498 | enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs); | 4499 | enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs); |
| 4499 | } | 4500 | } |
| 4500 | else | 4501 | else |
| 4501 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL, NULL); | 4502 | msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, post_lang, NULL); |
| 4502 | 4503 | ||
| 4503 | if (sensitive != NULL) { | 4504 | if (sensitive != NULL) { |
| 4504 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); | 4505 | msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); |