[mastodon] Fix instance load which broke with #17 #27
|
@ -31,7 +31,7 @@ class MastodonBot(Censor):
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
try:
|
try:
|
||||||
await self.model.instance.load()
|
await self.model.fetch_related("instance")
|
||||||
self.account = Mastodon(
|
self.account = Mastodon(
|
||||||
client_id=self.model.instance.client_id,
|
client_id=self.model.instance.client_id,
|
||||||
client_secret=self.model.instance.client_secret,
|
client_secret=self.model.instance.client_secret,
|
||||||
|
|
Loading…
Reference in a new issue