From ab29c59bba7d3ae199d65801b18f77d9d34441a2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 27 Feb 2022 17:52:24 +0200 Subject: [PATCH] violence --- files/routes/posts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index a683765d5..8accd01f7 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1206,10 +1206,7 @@ def submit_post(v, sub=None): return error("Image/Video files only.") if not post.thumburl and post.url: - if request.host in post.url or post.url.startswith('/') or post.domain == SITE: - post.thumburl = f'/static/assets/images/{SITE_NAME}/site_preview.webp' - elif request.headers.get('cf-ipcountry')!="T1": - gevent.spawn( thumbnail_thread, post.id) + gevent.spawn(thumbnail_thread, post.id)