This commit is contained in:
Aevann1 2021-09-26 12:55:06 +02:00
parent 95f8dec3a9
commit 4096f36acb
2 changed files with 19 additions and 113 deletions

View file

@ -846,10 +846,10 @@ def undelete_comment(cid, v):
return {"message": "Comment undeleted!"}
@app.post("/comment_pin/<cid>")
@app.post("/pin_comment/<cid>")
@auth_required
@validate_formkey
def toggle_comment_pin(cid, v):
def toggle_pin_comment(cid, v):
comment = get_comment(cid, v=v)