diff --git a/announce.py b/announce.py index 4f2a8881..f0575ea6 100644 --- a/announce.py +++ b/announce.py @@ -81,7 +81,7 @@ def announcedByPerson(postJsonObject: {}, nickname: str, domain: str) -> bool: # not to be confused with shared items if not postJsonObject['object'].get('shares'): return False - if not isinstance(postJsonObject['shares'], dict): + if not isinstance(postJsonObject['object']['shares'], dict): return False if not postJsonObject['object']['shares'].get('items'): return False