server/posts: fix custom thumbnails

This commit is contained in:
ItsKaa
2024-11-30 01:54:33 +01:00
committed by Eva
parent 3f42037e2b
commit 2fb2ffb2e1

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" % ( return "%s/generated-thumbnails/custom-thumbnails/sample_%d_%s.jpg" % (
config.config["data_url"].rstrip("/"), config.config["data_url"].rstrip("/"),
post.post_id, 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 assert post.post_id
return "posts/custom-thumbnails/%d_%s.dat" % ( return "posts/custom-thumbnails/%d_%s.dat" % (
post.post_id, post.post_id,
post.image_key, get_post_security_hash(post.post_id),
) )