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. --- snac.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'snac.h') diff --git a/snac.h b/snac.h index 2057e2c..c9ba28b 100644 --- a/snac.h +++ b/snac.h @@ -314,7 +314,8 @@ xs_dict *msg_create(snac *snac, const xs_dict *object); xs_dict *msg_follow(snac *snac, const char *actor); xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, - const xs_str *in_reply_to, const xs_list *attach, int priv); + const xs_str *in_reply_to, const xs_list *attach, + int priv, const char *lang); xs_dict *msg_undo(snac *snac, const xs_val *object); xs_dict *msg_delete(snac *snac, const char *id); -- cgit v1.2.3