login required on communities/notsubscribed

This commit is contained in:
rimu 2025-01-01 15:44:13 +13:00
parent ddccb7859b
commit ca6140315f
2 changed files with 8 additions and 8 deletions

View file

@ -330,6 +330,7 @@ def list_subscribed_communities():
@bp.route('/communities/notsubscribed', methods=['GET']) @bp.route('/communities/notsubscribed', methods=['GET'])
@login_required
def list_not_subscribed_communities(): def list_not_subscribed_communities():
verification_warning() verification_warning()
search_param = request.args.get('search', '') 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()), low_bandwidth=low_bandwidth, moderating_communities=moderating_communities(current_user.get_id()),
menu_topics=menu_topics(), site=g.site) menu_topics=menu_topics(), site=g.site)
@bp.route('/modlog', methods=['GET']) @bp.route('/modlog', methods=['GET'])
def modlog(): def modlog():
page = request.args.get('page', 1, type=int) page = request.args.get('page', 1, type=int)
@ -509,8 +511,6 @@ def replay_inbox():
@bp.route('/test') @bp.route('/test')
def test(): def test():
return mastodon_extra_field_link('<a href="https://www.brammeehan.com" target="_blank" rel="nofollow noopener me" translate="no"><span class="invisible">https://www.</span><span class="">brammeehan.com</span><span class="invisible"></span></a>')
response = get_request('https://rimu.geek.nz') response = get_request('https://rimu.geek.nz')
x = '' x = ''
if response.status_code == 200: if response.status_code == 200: