diff --git a/announce.py b/announce.py
index 4f2a8881a..f0575ea61 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