forked from indymedia/epicyon
Missing object
parent
c6ffdb2f83
commit
a06755827e
|
@ -81,7 +81,7 @@ def announcedByPerson(postJsonObject: {}, nickname: str, domain: str) -> bool:
|
||||||
# not to be confused with shared items
|
# not to be confused with shared items
|
||||||
if not postJsonObject['object'].get('shares'):
|
if not postJsonObject['object'].get('shares'):
|
||||||
return False
|
return False
|
||||||
if not isinstance(postJsonObject['shares'], dict):
|
if not isinstance(postJsonObject['object']['shares'], dict):
|
||||||
return False
|
return False
|
||||||
if not postJsonObject['object']['shares'].get('items'):
|
if not postJsonObject['object']['shares'].get('items'):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue