forked from rDrama/rDrama
dffd
parent
782d6238b0
commit
81dc29d99a
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue