From a06755827ef4a9cee0b95466575657c696b56313 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 12 Aug 2020 09:55:08 +0000 Subject: [PATCH] Missing object --- announce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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