From f6a382d0a79cf28fe82a53d444b93f85098ba541 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 5 Feb 2024 07:35:09 +1300 Subject: [PATCH] fixes #14 --- app/community/routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/community/routes.py b/app/community/routes.py index 971ff090..1e4c94d7 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -147,9 +147,9 @@ def show_community(community: Community): posts = posts.filter(Post.nsfw == False) content_filters = user_filters_posts(current_user.id) - domains_ids = blocked_domains(current_user.id) - if domains_ids: - posts = posts.filter(or_(Post.domain_id.not_in(domains_ids), Post.domain_id == None)) + domains_ids = blocked_domains(current_user.id) + if domains_ids: + posts = posts.filter(or_(Post.domain_id.not_in(domains_ids), Post.domain_id == None)) if sort == '' or sort == 'hot': posts = posts.order_by(desc(Post.ranking))