mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
login required on communities/notsubscribed
This commit is contained in:
parent
ddccb7859b
commit
ca6140315f
2 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||||
|
|
|
@ -17,12 +17,12 @@
|
||||||
{{ _('Local') }}
|
{{ _('Local') }}
|
||||||
</a>
|
</a>
|
||||||
{% if current_user.is_authenticated -%}
|
{% if current_user.is_authenticated -%}
|
||||||
<a href="/communities/subscribed" aria-label="{{ _('Joined communities') }}" class="btn {{ 'btn-primary' if request.path == '/communities/subscribed' else 'btn-outline-secondary' }}">
|
<a href="/communities/subscribed" aria-label="{{ _('Joined communities') }}" class="btn {{ 'btn-primary' if request.path == '/communities/subscribed' else 'btn-outline-secondary' }}">
|
||||||
{{ _('Joined') }}
|
{{ _('Joined') }}
|
||||||
</a>
|
</a>
|
||||||
<a href="/communities/notsubscribed" aria-label="{{ _('Not Joined communities') }}" class="btn {{ 'btn-primary' if request.path == '/communities/notsubscribed' else 'btn-outline-secondary' }}">
|
<a href="/communities/notsubscribed" aria-label="{{ _('Not Joined communities') }}" class="btn {{ 'btn-primary' if request.path == '/communities/notsubscribed' else 'btn-outline-secondary' }}">
|
||||||
{{ _('Not Joined') }}
|
{{ _('Not Joined') }}
|
||||||
</a>
|
</a>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue