From ca6140315fb7dcbf2c637b11c6a240ab333e58ac Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:44:13 +1300 Subject: [PATCH] login required on communities/notsubscribed --- app/main/routes.py | 4 ++-- app/templates/list_communities.html | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/main/routes.py b/app/main/routes.py index a95955f6..e487800d 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -330,6 +330,7 @@ def list_subscribed_communities(): @bp.route('/communities/notsubscribed', methods=['GET']) +@login_required def list_not_subscribed_communities(): verification_warning() search_param = request.args.get('search', '') @@ -386,6 +387,7 @@ def list_not_subscribed_communities(): low_bandwidth=low_bandwidth, moderating_communities=moderating_communities(current_user.get_id()), menu_topics=menu_topics(), site=g.site) + @bp.route('/modlog', methods=['GET']) def modlog(): page = request.args.get('page', 1, type=int) @@ -509,8 +511,6 @@ def replay_inbox(): @bp.route('/test') def test(): - return mastodon_extra_field_link('brammeehan.com') - response = get_request('https://rimu.geek.nz') x = '' if response.status_code == 200: diff --git a/app/templates/list_communities.html b/app/templates/list_communities.html index 66d6a165..d433bd25 100644 --- a/app/templates/list_communities.html +++ b/app/templates/list_communities.html @@ -17,12 +17,12 @@ {{ _('Local') }} {% if current_user.is_authenticated -%} - - {{ _('Joined') }} - - - {{ _('Not Joined') }} - + + {{ _('Joined') }} + + + {{ _('Not Joined') }} + {% endif -%}