forked from indymedia/epicyon
Check for dict
parent
4852e53973
commit
9925b986b3
2
like.py
2
like.py
|
@ -128,6 +128,8 @@ def updateLikesCollection(recentPostsCache: {}, \
|
||||||
pprint(postJsonObject)
|
pprint(postJsonObject)
|
||||||
print('DEBUG: post '+objectUrl+' has no object')
|
print('DEBUG: post '+objectUrl+' has no object')
|
||||||
return
|
return
|
||||||
|
if not isinstance(postJsonObject['object'], dict):
|
||||||
|
return
|
||||||
if not objectUrl.endswith('/likes'):
|
if not objectUrl.endswith('/likes'):
|
||||||
objectUrl=objectUrl+'/likes'
|
objectUrl=objectUrl+'/likes'
|
||||||
if not postJsonObject['object'].get('likes'):
|
if not postJsonObject['object'].get('likes'):
|
||||||
|
|
Loading…
Reference in New Issue