mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
exclude deleted posts from search results
This commit is contained in:
parent
29f48f58b3
commit
83f8a70407
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def run_search():
|
|||
sort_by = request.args.get('sort_by', '')
|
||||
|
||||
if q is not None or type != 0 or language_id != 0 or community_id != 0:
|
||||
posts = Post.query
|
||||
posts = Post.query.filter(Post.deleted == False)
|
||||
if current_user.is_authenticated:
|
||||
if current_user.ignore_bots == 1:
|
||||
posts = posts.filter(Post.from_bot == False)
|
||||
|
|
Loading…
Reference in a new issue