Check object is dict

main
bashrc 2026-08-23 23:41:09 +01:00
parent acadb191b8
commit 88501572de
1 changed files with 5 additions and 4 deletions

View File

@ -513,6 +513,7 @@ def _store_content_labels_base(base_dir: str, nickname: str, domain: str,
# get geolocations from content
map_links: list[str] = []
published = None
if has_object_dict(post_json_object):
if 'content' in post_json_object['object']:
published = post_json_object['object']['published']
post_content = post_json_object['object']['content']