From 9d286c846651e95a00df9bb90360e23cfd80755a Mon Sep 17 00:00:00 2001 From: chelsea Date: Sun, 12 Oct 2025 16:30:21 -0500 Subject: [PATCH] Fix IndentationError causing logged-in users to see no feed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The issue was caused by incorrect indentation in the community filtering logic (lines 451-468) which prevented the app from starting properly. Fixed: - Corrected 13-space indentation to 12 spaces for proper Python syntax - Ensured consistent 4-space tab width throughout the block This resolves the urgent issue where logged-in users couldn't see their feed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app.py b/app.py index d897aaa..3e87d01 100644 --- a/app.py +++ b/app.py @@ -448,24 +448,24 @@ def api_posts(): if platform and post_data.get('platform', '').lower() != platform.lower(): continue - # Apply user's community preferences (before filterset) - if user_communities: - post_source = post_data.get('source', '').lower() - post_platform = post_data.get('platform', '').lower() + # Apply user's community preferences (before filterset) + if user_communities: + post_source = post_data.get('source', '').lower() + post_platform = post_data.get('platform', '').lower() - # Check if this post matches any of the user's selected communities - matches_community = False - for selected_community in user_communities: - selected_community = selected_community.lower() - # Match by exact source name or platform name - if (post_source == selected_community or - post_platform == selected_community or - selected_community in post_source): - matches_community = True - break + # Check if this post matches any of the user's selected communities + matches_community = False + for selected_community in user_communities: + selected_community = selected_community.lower() + # Match by exact source name or platform name + if (post_source == selected_community or + post_platform == selected_community or + selected_community in post_source): + matches_community = True + break - if not matches_community: - continue + if not matches_community: + continue # Apply search filter (before filterset) if search_query: