From 64a851a77e0de535bf3ba18e3b6c7f1d79480c99 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 16 Dec 2021 20:13:23 +0200 Subject: [PATCH] fsdfsd --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index c9efe9a9f..2d11f2e1b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -605,7 +605,7 @@ def thumbnail_thread(pid): fetch_url = post.url - if fetch_url.startswith('/'): fetch_url = request.host_url[:-1] + fetch_url + if fetch_url.startswith('/'): fetch_url = f"https://{site}{fetch_url}" headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36"}