diff --git a/libforget/misskey.py b/libforget/misskey.py index d5d4c0a..02777ee 100644 --- a/libforget/misskey.py +++ b/libforget/misskey.py @@ -33,7 +33,7 @@ def get_or_create_app(instance_url, callback, website): app.client_secret = None else: # register the app - r = post('{}://{}/api/app/create', json = { + r = post('{}://{}/api/app/create'.format(app.protocol, app.instance), json = { 'name': 'forget', 'description': website, 'permission': ['read:favorites', 'write:notes'], diff --git a/routes/__init__.py b/routes/__init__.py index 5e4feef..3199db9 100644 --- a/routes/__init__.py +++ b/routes/__init__.py @@ -249,7 +249,7 @@ def misskey_login(instance=None): min_popularity = 1 ) return render_template( - 'mastodon_login.html', instances=instances, + 'misskey_login.html', instances=instances, address_error=request.method == 'POST', generic_error='error' in request.args )