rename fullnames

Handle a couple places with `t3_` that persisted from code movement.
on master after time of branch.

Then, fix commenting, which used inaccurate fullname parsing logic.
This commit is contained in:
justcool393 2023-07-13 12:37:28 -07:00 committed by GitHub
parent db1f578f26
commit 8191d5a4cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 27 additions and 28 deletions

View file

@ -17,8 +17,8 @@ def admin_vote_info_get(v):
if not link: return render_template("votes.html", v=v)
try:
if "t2_" in link: thing = get_post(link.split("t2_")[1], v=v)
elif "t3_" in link: thing = get_comment(link.split("t3_")[1], v=v)
if "post_" in link: thing = get_post(link.split("post_")[1], v=v)
elif "comment_" in link: thing = get_comment(link.split("comment_")[1], v=v)
else: abort(400)
except: abort(400)