This commit is contained in:
Aevann1 2022-02-03 08:39:02 +02:00
parent f0580c3a9e
commit c2beea12ef
32 changed files with 294 additions and 274 deletions

View file

@ -24,6 +24,8 @@ def admin_vote_info_get(v):
if thing.ghost: abort(403)
if not thing.author:
print(thing.id, flush=True)
if isinstance(thing, Submission):
if thing.author.shadowbanned and not (v and v.admin_level):
thing_id = g.db.query(Submission.id).filter_by(upvotes=thing.upvotes, downvotes=thing.downvotes).order_by(Submission.id).first()[0]
@ -60,7 +62,7 @@ def admin_vote_info_get(v):
v=v,
thing=thing,
ups=ups,
downs=downs,)
downs=downs)