mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
fixes #14
This commit is contained in:
parent
d69dac7631
commit
f6a382d0a7
1 changed files with 3 additions and 3 deletions
|
@ -147,9 +147,9 @@ def show_community(community: Community):
|
||||||
posts = posts.filter(Post.nsfw == False)
|
posts = posts.filter(Post.nsfw == False)
|
||||||
content_filters = user_filters_posts(current_user.id)
|
content_filters = user_filters_posts(current_user.id)
|
||||||
|
|
||||||
domains_ids = blocked_domains(current_user.id)
|
domains_ids = blocked_domains(current_user.id)
|
||||||
if domains_ids:
|
if domains_ids:
|
||||||
posts = posts.filter(or_(Post.domain_id.not_in(domains_ids), Post.domain_id == None))
|
posts = posts.filter(or_(Post.domain_id.not_in(domains_ids), Post.domain_id == None))
|
||||||
|
|
||||||
if sort == '' or sort == 'hot':
|
if sort == '' or sort == 'hot':
|
||||||
posts = posts.order_by(desc(Post.ranking))
|
posts = posts.order_by(desc(Post.ranking))
|
||||||
|
|
Loading…
Add table
Reference in a new issue