[mastodon] Fix: boosting public toots instead of posting them as own
This commit is contained in:
parent
0504d3083f
commit
f7d9baa8a3
|
@ -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,))
|
||||
|
|
Loading…
Reference in a new issue