mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Bugfix for community edit form changing default_layout from None to '' and making the selection buttons disappear
This commit is contained in:
parent
1907c009b3
commit
4177292320
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue