From 76bd91e55938dfbe27901dc2ada955fecbcb8905 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 28 Jun 2024 22:41:42 +0200 Subject: [PATCH] apply filters to community list --- app/templates/list_communities.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/list_communities.html b/app/templates/list_communities.html index 3095ed1c..fe034f9a 100644 --- a/app/templates/list_communities.html +++ b/app/templates/list_communities.html @@ -86,7 +86,11 @@ {% for community in communities.items -%} - + {% set content_blocked = (current_user.hide_nsfw == 3 and community.nsfw) + or (current_user.hide_nsfl == 3 and community.nsfl) -%} + {% set blur_content = (current_user.hide_nsfw == 2 and community.nsfw) + or (current_user.hide_nsfl == 2 and community.nsfl) -%} + {% if current_user.is_authenticated -%} {% if community_membership(current_user, community) in [SUBSCRIPTION_MEMBER, SUBSCRIPTION_MODERATOR, SUBSCRIPTION_OWNER] -%} {{ _('Leave') }}