[mastodon] Fix instance load which broke with #17

This commit is contained in:
missytake 2023-04-01 21:25:49 +02:00
parent 5bff62487b
commit 91e93b3e20

View file

@ -31,7 +31,7 @@ class MastodonBot(Censor):
async def run(self):
try:
await self.model.instance.load()
await self.model.fetch_related("instance")
self.account = Mastodon(
client_id=self.model.instance.client_id,
client_secret=self.model.instance.client_secret,