Check for dict

main
Bob Mottram 2019-12-01 18:03:14 +00:00
parent 4852e53973
commit 9925b986b3
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ def updateLikesCollection(recentPostsCache: {}, \
pprint(postJsonObject)
print('DEBUG: post '+objectUrl+' has no object')
return
if not isinstance(postJsonObject['object'], dict):
return
if not objectUrl.endswith('/likes'):
objectUrl=objectUrl+'/likes'
if not postJsonObject['object'].get('likes'):