mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Same default for initial fetch and refresh if 'postingRestrictedToMods' is missing from community json
This commit is contained in:
parent
33b8b65f1b
commit
3219a55d98
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ def refresh_community_profile_task(community_id):
|
|||
community.description_html = markdown_to_html(community.description)
|
||||
community.rules = activity_json['rules'] if 'rules' in activity_json else ''
|
||||
community.rules_html = lemmy_markdown_to_html(activity_json['rules'] if 'rules' in activity_json else '')
|
||||
community.restricted_to_mods = activity_json['postingRestrictedToMods'] if 'postingRestrictedToMods' in activity_json else True
|
||||
community.restricted_to_mods = activity_json['postingRestrictedToMods'] if 'postingRestrictedToMods' in activity_json else False
|
||||
community.new_mods_wanted = activity_json['newModsWanted'] if 'newModsWanted' in activity_json else False
|
||||
community.private_mods = activity_json['privateMods'] if 'privateMods' in activity_json else False
|
||||
community.ap_moderators_url = mods_url
|
||||
|
|
Loading…
Add table
Reference in a new issue