server/posts: fix custom thumbnails

This commit is contained in:
ItsKaa
2024-11-30 01:54:33 +01:00
committed by Eva
parent 535d2d2a8b
commit 0972139831

View File

@ -129,7 +129,7 @@ def get_post_custom_thumbnail_url(post: model.Post) -> str:
return "%s/generated-thumbnails/custom-thumbnails/sample_%d_%s.jpg" % (
config.config["data_url"].rstrip("/"),
post.post_id,
post.image_key,
get_post_security_hash(post.post_id),
)
@ -148,7 +148,7 @@ def get_post_custom_content_path(post: model.Post) -> str:
assert post.post_id
return "posts/custom-thumbnails/%d_%s.dat" % (
post.post_id,
post.image_key,
get_post_security_hash(post.post_id),
)