mirror of https://gitlab.com/bashrc2/epicyon
Check post type
parent
94a2e495b6
commit
dec34f9941
4
like.py
4
like.py
|
@ -20,6 +20,10 @@ def undoLikesCollectionEntry(postFilename: str,objectUrl: str, actor: str,debug:
|
||||||
"""
|
"""
|
||||||
with open(postFilename, 'r') as fp:
|
with open(postFilename, 'r') as fp:
|
||||||
postJson=commentjson.load(fp)
|
postJson=commentjson.load(fp)
|
||||||
|
if not postJson.get('type'):
|
||||||
|
if not postJson['type']=='Create':
|
||||||
|
return
|
||||||
|
return
|
||||||
if not postJson.get('object'):
|
if not postJson.get('object'):
|
||||||
if debug:
|
if debug:
|
||||||
pprint(postJson)
|
pprint(postJson)
|
||||||
|
|
Loading…
Reference in New Issue