hopefully fix favicon

Signed-off-by: Chloe Carver-Brown <admin@twxtter.com>
This commit is contained in:
Chloe Carver-Brown 2022-05-20 19:41:49 +01:00
parent 0ad193c13a
commit a24dc40794
No known key found for this signature in database
GPG Key ID: 71938715093BE620
3 changed files with 3 additions and 10 deletions

View File

@ -2,6 +2,7 @@
<html lang="en">
<head>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Twxtter Stats</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<style>
</style>

View File

@ -480,15 +480,6 @@ def dir(sub_path):
return redirect(url, 301)
@app.route("/favicon.ico") # This shit don't work
def favicon():
return send_from_directory(
os.path.join(app.root_path, "static"),
"favicon.ico",
mimetype="image/vnd.microsoft.icon",
)
def direct_video(video_link): # Just get a redirect to a MP4 link from any tweet link
cached_vnf = getVnfFromLinkCache(video_link)
if cached_vnf == None:
@ -564,7 +555,7 @@ def embed_video(video_link, image=0, raw=False): # Return Embed from any tweet
def tweetInfo(
url,
url="",
tweet="",
desc="",
thumb="",