forked from rDrama/rDrama
1
0
Fork 0

show deleted shit in report queue on carp request

master
Aevann 2024-05-21 23:15:09 +03:00
parent 5ffed07c17
commit 48c90dc466
1 changed files with 0 additions and 2 deletions

View File

@ -345,7 +345,6 @@ def reported_posts(v):
listing = g.db.query(Post).distinct(Post.id).options(load_only(Post.id)).filter_by(
is_approved=None,
is_banned=False,
deleted_utc=0
).join(Post.reports).join(User, User.id == Report.user_id).filter(User.shadowbanned == None, User.is_muted == False)
total = listing.count()
@ -368,7 +367,6 @@ def reported_comments(v):
listing = g.db.query(Comment).distinct(Comment.id).options(load_only(Comment.id)).filter_by(
is_approved=None,
is_banned=False,
deleted_utc=0
).join(Comment.reports).join(User, User.id == CommentReport.user_id).filter(User.shadowbanned == None, User.is_muted == False)
total = listing.count()