forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-14 07:39:03 +02:00
parent 8341751c07
commit 45eb7e6a90
1 changed files with 2 additions and 2 deletions

View File

@ -1039,8 +1039,8 @@ def submit_post(v):
if not new_post.thumburl and new_post.url:
if request.host in new_post.url or new_post.url.startswith('/') or request.host == 'rdrama.net' and 'rdrama' in new_post.url:
new_post.thumburl = '/static/assets/images/{site_name}/site_preview.webp'
if request.host in new_post.url or new_post.url.startswith('/') or request.host == 'rdrama.net' and 'rdrama' in new_post.domain:
new_post.thumburl = f'/static/assets/images/{site_name}/site_preview.webp'
elif request.headers.get('cf-ipcountry')!="T1":
gevent.spawn( thumbnail_thread, new_post.id)