Check for dict

main
Bob Mottram 2022-12-30 19:40:48 +00:00
parent 9446b4ecf9
commit 16548ddbad
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ def _valid_profile_preview_post(post_json_object: {},
"""Returns true if the given post should appear on a person/group profile
after searching for a handle
"""
if not isinstance(post_json_object, dict):
return False, None
is_announced_feed_item = False
if is_create_inside_announce(post_json_object):
is_announced_feed_item = True