Check for dictionary

merge-requests/30/head
Bob Mottram 2024-07-26 10:51:57 +01:00
parent 33c1ad11f5
commit 45c7da2a8c
1 changed files with 2 additions and 0 deletions

View File

@ -532,6 +532,8 @@ def html_profile_after_search(authorized: bool,
minimize_all_images = True
i = 0
for item in user_feed:
if not isinstance(item, dict):
continue
if item.get('type') and item.get('object'):
if str(item['type']) == 'Announce' and \
isinstance(item['object'], str):