diff options
| author | 2025-01-05 09:34:00 +0100 | |
|---|---|---|
| committer | 2025-01-05 09:34:00 +0100 | |
| commit | 3a1cae73265aebdbe678d94fbdc16edf3ccc643f (patch) | |
| tree | 3c50341495d370dfeb7bfe0312ad5644d9c8f865 /snac.h | |
| parent | Use the site's CSS in the /share page. (diff) | |
| download | penes-snac2-3a1cae73265aebdbe678d94fbdc16edf3ccc643f.tar.gz penes-snac2-3a1cae73265aebdbe678d94fbdc16edf3ccc643f.tar.xz penes-snac2-3a1cae73265aebdbe678d94fbdc16edf3ccc643f.zip | |
Moved post language setting to msg_note(), where it really belongs.
On the way, posting from the Mastodon API sets the language accordingly.
Diffstat (limited to '')
| -rw-r--r-- | snac.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -314,7 +314,8 @@ xs_dict *msg_create(snac *snac, const xs_dict *object); | |||
| 314 | xs_dict *msg_follow(snac *snac, const char *actor); | 314 | xs_dict *msg_follow(snac *snac, const char *actor); |
| 315 | 315 | ||
| 316 | xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, | 316 | xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, |
| 317 | const xs_str *in_reply_to, const xs_list *attach, int priv); | 317 | const xs_str *in_reply_to, const xs_list *attach, |
| 318 | int priv, const char *lang); | ||
| 318 | 319 | ||
| 319 | xs_dict *msg_undo(snac *snac, const xs_val *object); | 320 | xs_dict *msg_undo(snac *snac, const xs_val *object); |
| 320 | xs_dict *msg_delete(snac *snac, const char *id); | 321 | xs_dict *msg_delete(snac *snac, const char *id); |