Skip to content

Commit

Permalink
Mastodon: using .toot() in production is not recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 27, 2024
1 parent fe67824 commit e01c80c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion voctopublish/api_client/mastodon_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit e01c80c

Please sign in to comment.