diff --git a/app/community/routes.py b/app/community/routes.py index 671a4f35..1d72b08f 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -106,7 +106,7 @@ def show_community(community: Community): page = request.args.get('page', 1, type=int) sort = request.args.get('sort', '' if current_user.is_anonymous else current_user.default_sort) low_bandwidth = request.cookies.get('low_bandwidth', '0') == '1' - post_layout = request.args.get('layout', community.default_layout if not low_bandwidth else '') + post_layout = request.args.get('layout', community.default_layout if not low_bandwidth else None) # If nothing has changed since their last visit, return HTTP 304 current_etag = f"{community.id}{sort}_{hash(community.last_active)}" diff --git a/app/templates/community/_community_nav.html b/app/templates/community/_community_nav.html index d9b9b1cf..dda107e0 100644 --- a/app/templates/community/_community_nav.html +++ b/app/templates/community/_community_nav.html @@ -15,7 +15,7 @@ {{ _('Active') }} -{% if post_layout != '' %} +{% if post_layout != '' and post_layout is not none %}
{{ _('List') }}