[mastodon] Fix: boosting public toots instead of posting them as own

pull/2/head
missytake 2023-03-19 20:27:48 +01:00
parent 0504d3083f
commit f7d9baa8a3
1 changed files with 3 additions and 3 deletions

View File

@ -85,10 +85,10 @@ class MastodonBot(Censor):
"""Push new Ticketfrei reports to Mastodon; if source is mastodon, boost it."""
while True:
message = await self.receive()
if hasattr(message, "tood_id"):
logger.debug("Boosting post %s: %s" % (message.tood_id, message.text))
if hasattr(message, "toot_id"):
logger.debug("Boosting post %s: %s" % (message.toot_id, message.text))
await get_event_loop().run_in_executor(
None, self.account.status_reblog, message.tood_id
None, self.account.status_reblog, message.toot_id
)
else:
logger.debug("Posting message: %s" % (message.text,))