remotes/1693045480750635534/spooky-22
Aevann1 2022-02-27 17:52:24 +02:00
parent ec8cac2765
commit ab29c59bba
1 changed files with 1 additions and 4 deletions

View File

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