dont run thumbnail_thread from posts from the site itself

pull/138/head
Aevann 2023-03-07 03:12:56 +02:00
parent ff10866efe
commit 393bb7b033
1 changed files with 1 additions and 1 deletions

View File

@ -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: