Getting content for quote toots as defined by FEP-dd4b

main
Bob Mottram 2025-02-23 12:38:41 +00:00
parent 8e4d74520f
commit 296c9a87e3
1 changed files with 5 additions and 1 deletions

View File

@ -487,7 +487,11 @@ def get_content_from_post(post_json_object: {}, system_language: str,
"""
this_post_json = post_json_object
if has_object_dict(post_json_object):
this_post_json = post_json_object['object']
# handle quote posts FEP-dd4b, where there is no content within object
if (content_type != 'content' or
('content' in this_post_json['object'] or
'contentMap' in this_post_json['object'])):
this_post_json = post_json_object['object']
map_dict = content_type + 'Map'
has_contentmap_dict = False
if this_post_json.get(map_dict):