mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
Correct subscripion status in 'Local' and 'Joined' for communities user has created. #8
This commit is contained in:
parent
4afcf56a7b
commit
6b87ca2392
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ def list_local_communities():
|
|||
communities = Community.query.filter_by(ap_id=None, banned=False)
|
||||
return render_template('list_communities.html', communities=communities.order_by(sort_by).all(), title=_('Local communities'), sort_by=sort_by,
|
||||
SUBSCRIPTION_PENDING=SUBSCRIPTION_PENDING, SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER,
|
||||
SUBSCRIPTION_MODERATOR=SUBSCRIPTION_MODERATOR,
|
||||
SUBSCRIPTION_OWNER=SUBSCRIPTION_OWNER, SUBSCRIPTION_MODERATOR=SUBSCRIPTION_MODERATOR,
|
||||
low_bandwidth=request.cookies.get('low_bandwidth', '0') == '1', moderating_communities=moderating_communities(current_user.get_id()),
|
||||
joined_communities=joined_communities(current_user.get_id()))
|
||||
|
||||
|
@ -204,7 +204,7 @@ def list_subscribed_communities():
|
|||
communities = []
|
||||
return render_template('list_communities.html', communities=communities, title=_('Joined communities'),
|
||||
SUBSCRIPTION_PENDING=SUBSCRIPTION_PENDING, SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER, sort_by=sort_by,
|
||||
SUBSCRIPTION_MODERATOR=SUBSCRIPTION_MODERATOR,
|
||||
SUBSCRIPTION_OWNER=SUBSCRIPTION_OWNER, SUBSCRIPTION_MODERATOR=SUBSCRIPTION_MODERATOR,
|
||||
low_bandwidth=request.cookies.get('low_bandwidth', '0') == '1', moderating_communities=moderating_communities(current_user.get_id()),
|
||||
joined_communities=joined_communities(current_user.get_id()))
|
||||
|
||||
|
|
Loading…
Reference in a new issue