dont try to generate thumb when theres no post url

master
Aevann 2024-11-17 20:52:09 +02:00
parent 23de19758e
commit 1a9f16c27b
1 changed files with 2 additions and 1 deletions

View File

@ -426,7 +426,8 @@ def postprocess_post(post_url, post_body, post_body_html, pid, generate_thumb, e
#thumbnail
if not generate_thumb: return
if not generate_thumb or not post_url:
return
if post_url.startswith('/') and '\\' not in post_url:
post_url = f"{SITE_FULL}{post_url}"