From 89ce75e051569acc54dbefab9279367bc3b56207 Mon Sep 17 00:00:00 2001 From: freamon Date: Mon, 6 Jan 2025 11:20:32 +0000 Subject: [PATCH] Also list moderated / owned communities in 'Joined' tab --- app/main/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main/routes.py b/app/main/routes.py index e487800d..89c78b51 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -290,10 +290,13 @@ def list_subscribed_communities(): all_communities = Community.query.filter_by(banned=False) # get the user's joined communities user_joined_communities = joined_communities(current_user.id) + user_moderating_communities = moderating_communities(current_user.id) # get the joined community ids list joined_ids = [] for jc in user_joined_communities: joined_ids.append(jc.id) + for mc in user_moderating_communities: + joined_ids.append(mc.id) # filter down to just the joined communities communities = all_communities.filter(Community.id.in_(joined_ids))