fix parsing urls

This commit is contained in:
Johann150 2021-11-09 23:43:09 +01:00
parent eee3bb82fe
commit bb496bb5e6
No known key found for this signature in database
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def logout():
def domain_from_url(url):
urlparse(url).netloc.lower()
return urlparse(url).netloc.lower() or urlparse("//"+url).netloc.lower()
@app.route('/login/mastodon', methods=('GET', 'POST'))
def mastodon_login_step1(instance=None):