From 8dc5cd67c79902037751350c0c8dca19d41afe72 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 17:35:36 +0200 Subject: [PATCH] fix 502 error --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 999d9d53f..8acfa5cac 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -924,7 +924,7 @@ def unsave_post(pid, v): @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required -def pin_post(post_id, v): +def profile_pin(post_id, v): p = get_post(post_id) if p: if v.id != p.author_id: abort(403, "Only the post author can do that!")