remotes/1693045480750635534/spooky-22
Aevann1 2021-07-30 08:17:38 +02:00
parent 782d6238b0
commit 81dc29d99a
2 changed files with 5 additions and 5 deletions

View File

@ -66,10 +66,10 @@ def comment_cid_api_redirect(cid=None, pid=None):
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
try: cid = int(cid)
except Exception as e: pass
try: cid = int(cid)
except: cid = int(cid, 36)
comment = get_comment(cid, v=v)
if not comment.parent_submission and not (v and v.admin_level == 6): abort(403)

View File

@ -120,8 +120,8 @@ def api_vote_comment(comment_id, new, v):
new = int(new)
try: uid = int(comment_id)
except: uid = int(comment_id, 36)
try: comment_id = int(comment_id)
except: comment_id = int(comment_id, 36)
comment = get_comment(comment_id)