correctly read miauth feature flag
This commit is contained in:
parent
623a7e4415
commit
1522d766fa
|
@ -21,7 +21,7 @@ def get_or_create_app(instance_url, callback, website, session):
|
||||||
proto = 'http'
|
proto = 'http'
|
||||||
|
|
||||||
# check if miauth is available or we have to use legacy auth
|
# 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 = MisskeyApp()
|
||||||
app.instance = instance_url
|
app.instance = instance_url
|
||||||
|
|
Loading…
Reference in New Issue