mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
oops
This commit is contained in:
parent
115247f422
commit
352e91d5aa
1 changed files with 3 additions and 3 deletions
|
@ -577,9 +577,6 @@ def refresh_community_profile_task(community_id):
|
|||
community.ap_fetched_at = utcnow()
|
||||
community.public_key=activity_json['publicKey']['publicKeyPem']
|
||||
|
||||
if community.description.startswith('<p>'):
|
||||
community.description_html = allowlist_html(community.description)
|
||||
|
||||
if 'source' in activity_json and \
|
||||
activity_json['source']['mediaType'] == 'text/markdown':
|
||||
community.description = activity_json['source']['content']
|
||||
|
@ -588,6 +585,9 @@ def refresh_community_profile_task(community_id):
|
|||
community.description_html = allowlist_html(activity_json['content'])
|
||||
community.description = ''
|
||||
|
||||
if community.description and community.description.startswith('<p>'):
|
||||
community.description_html = allowlist_html(community.description)
|
||||
|
||||
icon_changed = cover_changed = False
|
||||
if 'icon' in activity_json:
|
||||
if isinstance(activity_json['icon'], dict) and 'url' in activity_json['icon']:
|
||||
|
|
Loading…
Add table
Reference in a new issue