mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
show content as trash only if downvoted
This commit is contained in:
parent
513d4da7c3
commit
63e36acbcb
1 changed files with 1 additions and 1 deletions
|
@ -972,7 +972,7 @@ def admin_content_trash():
|
||||||
|
|
||||||
page = request.args.get('page', 1, type=int)
|
page = request.args.get('page', 1, type=int)
|
||||||
|
|
||||||
posts = Post.query.filter(Post.posted_at > utcnow() - timedelta(days=3), Post.deleted == False).order_by(Post.score)
|
posts = Post.query.filter(Post.posted_at > utcnow() - timedelta(days=3), Post.deleted == False, Post.down_votes > 0).order_by(Post.score)
|
||||||
posts = posts.paginate(page=page, per_page=100, error_out=False)
|
posts = posts.paginate(page=page, per_page=100, error_out=False)
|
||||||
|
|
||||||
next_url = url_for('admin.admin_content_trash', page=posts.next_num) if posts.has_next else None
|
next_url = url_for('admin.admin_content_trash', page=posts.next_num) if posts.has_next else None
|
||||||
|
|
Loading…
Add table
Reference in a new issue