disable pinning comments too

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-28 03:34:17 +02:00
parent aac17a6daa
commit d4d53d57d0
1 changed files with 2 additions and 2 deletions

View File

@ -834,7 +834,7 @@ def undelete_comment(cid, v):
@app.post("/pin_comment/<cid>")
@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/<cid>")
@auth_required
def mod_pin(cid, v):
abort(403)
comment = get_comment(cid, v=v)
if not comment.stickied: