Bugfix for community edit form changing default_layout from None to '' and making the selection buttons disappear

This commit is contained in:
freamon 2024-08-20 22:45:26 +00:00
parent 1907c009b3
commit 4177292320

View file

@ -172,7 +172,7 @@ def show_community(community: Community):
if low_bandwidth: if low_bandwidth:
post_layout = None post_layout = None
else: else:
if community.default_layout is not None: if community.default_layout is not None and community.default_layout != '':
post_layout = request.args.get('layout', community.default_layout) post_layout = request.args.get('layout', community.default_layout)
else: else:
post_layout = request.args.get('layout', 'list') post_layout = request.args.get('layout', 'list')