From 393bb7b033aa7da1777eb51b32ff16956637c386 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 7 Mar 2023 03:12:56 +0200 Subject: [PATCH] dont run thumbnail_thread from posts from the site itself --- 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 409a009ead..f12214cf65 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -637,7 +637,7 @@ def submit_post(v:User, sub=None): else: abort(415) - if not p.thumburl and p.url: + if not p.thumburl and p.url and p.domain not in {SITE, BAN_EVASION_DOMAIN}: gevent.spawn(thumbnail_thread, p.id, v.id) if not p.private: