From d4d53d57d03cc5abc3d3461d063dc5e43476e294 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 28 Jun 2022 03:34:17 +0200 Subject: [PATCH] disable pinning comments too --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 837f29b89..28f468da5 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -834,7 +834,7 @@ def undelete_comment(cid, v): @app.post("/pin_comment/") @auth_required def pin_comment(cid, v): - + abort(403) comment = get_comment(cid, v=v) if not comment.stickied: @@ -877,7 +877,7 @@ def unpin_comment(cid, v): @app.post("/mod_pin/") @auth_required def mod_pin(cid, v): - + abort(403) comment = get_comment(cid, v=v) if not comment.stickied: