From 3a1cae73265aebdbe678d94fbdc16edf3ccc643f Mon Sep 17 00:00:00 2001 From: default Date: Sun, 5 Jan 2025 09:34:00 +0100 Subject: Moved post language setting to msg_note(), where it really belongs. On the way, posting from the Mastodon API sets the language accordingly. --- html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index ead7ed4..cd8279e 100644 --- a/html.c +++ b/html.c @@ -3515,7 +3515,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, const char *b64 = xs_dict_get(q_vars, "content"); int sz; xs *content = xs_base64_dec(b64, &sz); - xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0); + xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0, NULL); xs *c_msg = msg_create(&snac, msg); timeline_add(&snac, xs_dict_get(msg, "id"), msg); @@ -3661,7 +3661,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); + msg = msg_note(&snac, content_2, to, in_reply_to, attach_list, priv, NULL); if (sensitive != NULL) { msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); @@ -4095,7 +4095,7 @@ int html_post_handler(const xs_dict *req, const char *q_path, int c = 0; while (xs_list_next(ls, &v, &c)) { - xs *msg = msg_note(&snac, "", actor, irt, NULL, 1); + xs *msg = msg_note(&snac, "", actor, irt, NULL, 1, NULL); /* set the option */ msg = xs_dict_append(msg, "name", v); -- cgit v1.2.3