Check that returned json is a dict

merge-requests/30/head
Bob Mottram 2023-08-01 09:54:24 +01:00
parent cdd9550223
commit 1dc062b1d8
1 changed files with 9 additions and 8 deletions

View File

@ -1543,6 +1543,7 @@ def _get_post_title_reply_html(base_dir: str,
headers, None, debug,
__version__, http_prefix, domain)
if reply_post_json:
if isinstance(reply_post_json, dict):
obj_json = reply_post_json
if has_object_dict(reply_post_json):
obj_json = reply_post_json['object']