This commit is contained in:
Aevann1 2022-01-17 23:36:04 +02:00
parent 1095c4f233
commit dc85175931
3 changed files with 11 additions and 10 deletions

View file

@ -39,6 +39,7 @@ def admin_vote_info_get(v):
).order_by(Vote.id).all()
elif isinstance(thing, Comment):
if thing.author_name == '👻': abort(403)
if thing.author.shadowbanned and not (v and v.admin_level):
thing_id = g.db.query(Comment.id).filter_by(upvotes=thing.upvotes, downvotes=thing.downvotes).order_by(Comment.id).first()[0]