From 296c9a87e32d3e2476e8df1b62ad4a8088259c53 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 23 Feb 2025 12:38:41 +0000 Subject: [PATCH] Getting content for quote toots as defined by FEP-dd4b --- utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 35eded383..b976854c6 100644 --- a/utils.py +++ b/utils.py @@ -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):