Fixes issue with favicon

This commit is contained in:
pluja 2020-09-26 20:17:33 +02:00
parent bcb05268ba
commit d0377b9d8d

View File

@ -179,8 +179,11 @@ def search():
return render_template('search.html', form = form, config=config)
@app.route('/u/<username>')
@app.route('/<username>')
@login_required
def u(username):
if username = "favicon.ico":
return redirect(url_for('static',filename='favicons/favicon.ico'))
form = EmptyForm()
avatarPath = "img/avatars/{}.png".format(str(random.randint(1,12)))
user = getTwitterUserInfo(username)