correctly read miauth feature flag

This commit is contained in:
Johann150 2021-11-10 12:53:34 +01:00
parent 623a7e4415
commit 1522d766fa
No known key found for this signature in database
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def get_or_create_app(instance_url, callback, website, session):
proto = 'http'
# check if miauth is available or we have to use legacy auth
miauth = 'miauth' in r.json()['features']
miauth = r.json().get('miauth', False)
app = MisskeyApp()
app.instance = instance_url