diff --git a/libforget/misskey.py b/libforget/misskey.py index e8440b7..3682c55 100644 --- a/libforget/misskey.py +++ b/libforget/misskey.py @@ -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