[mastodon] Fix instance load which broke with #17 #27

Merged
missytake merged 1 commit from fix-load into development 2023-04-08 16:52:55 +00:00
Showing only changes of commit 91e93b3e20 - Show all commits

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,