From e01c80cd162cb745d2d887324c7a4dcb877238f6 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 27 Dec 2024 07:59:26 +0100 Subject: [PATCH] Mastodon: using .toot() in production is not recommended --- voctopublish/api_client/mastodon_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/voctopublish/api_client/mastodon_client.py b/voctopublish/api_client/mastodon_client.py index eb4ab59..5900be0 100644 --- a/voctopublish/api_client/mastodon_client.py +++ b/voctopublish/api_client/mastodon_client.py @@ -64,7 +64,10 @@ def send_toot(ticket, config): access_token="mastodon_usercred.secret", api_base_url=config["mastodon"]["api_base_url"], ) - toot = mastodon.toot(message) + toot = mastodon.status_post( + message, + language="en", # announcements are always in english + ) LOG.debug(toot) return { 'id': toot['id'],