diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index e9e14513..0720552d 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -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), )