From 91e93b3e20a59fdcb93971bb1b5a03c934df3127 Mon Sep 17 00:00:00 2001 From: missytake Date: Sat, 1 Apr 2023 21:25:49 +0200 Subject: [PATCH] [mastodon] Fix instance load which broke with #17 --- backend/src/kibicara/platforms/mastodon/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/kibicara/platforms/mastodon/bot.py b/backend/src/kibicara/platforms/mastodon/bot.py index 83d3c23..b378e8c 100644 --- a/backend/src/kibicara/platforms/mastodon/bot.py +++ b/backend/src/kibicara/platforms/mastodon/bot.py @@ -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,