make wpd report queue usable

master
Aevann 2024-02-16 23:58:27 +02:00
parent aa67af527d
commit 95ec09a6b3
1 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ def reported_posts(v):
is_approved=None,
is_banned=False,
deleted_utc=0
).join(Post.reports)
).join(Post.reports).join(User, User.id == Report.user_id).filter(User.shadowbanned == None, User.is_muted == False)
total = listing.count()
@ -365,7 +365,7 @@ def reported_comments(v):
is_approved=None,
is_banned=False,
deleted_utc=0
).join(Comment.reports)
).join(Comment.reports).join(User, User.id == Report.user_id).filter(User.shadowbanned == None, User.is_muted == False)
total = listing.count()