From f577a8b8ca6f784f00fc767539fc289cd4eb7017 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Sat, 13 Jan 2024 23:26:14 -0800 Subject: [PATCH] Add language to posts so they can be translated --- scl.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scl.py b/scl.py index bbf21e4..7bbc87a 100644 --- a/scl.py +++ b/scl.py @@ -170,6 +170,7 @@ with Session(engine) as session: status="\n".join(updated_entries), in_reply_to_id=existing_record.most_recent_post_id, visibility="public", + language="en", ) existing_record.most_recent_post_id = mastodon_post_result["id"] @@ -225,7 +226,10 @@ Cause: {} map_media_post = None mastodon_post_result = mastodon.status_post( - status=post_text, media_ids=map_media_post, visibility="public" + status=post_text, + media_ids=map_media_post, + visibility="public", + language="en", ) new_outage_record = SclOutage( @@ -253,6 +257,7 @@ Cause: {} ), in_reply_to_id=active_outage.most_recent_post_id, visibility="public", + language="en", ) active_outage.most_recent_post_id = mastodon_post_result["id"]