aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/szurubooru/func/posts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py
index 532bd23..ee58633 100644
--- a/server/szurubooru/func/posts.py
+++ b/server/szurubooru/func/posts.py
@@ -88,7 +88,8 @@ FLAG_MAP = {
def get_post_security_hash(id: int) -> str:
return hmac.new(
config.config['secret'].encode('utf8'),
- str(id).encode('utf-8')).hexdigest()[0:16]
+ msg=str(id).encode('utf-8'),
+ digestmod='md5').hexdigest()[0:16]
def get_post_content_url(post: model.Post) -> str:

© 2015 - 2026 Jakob L. Kreuze