mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/posts: fix custom thumbnails
This commit is contained in:
@ -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),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user