forked from indymedia/epicyon
Check object
parent
02f6b6cba9
commit
964b8524b3
1
utils.py
1
utils.py
|
@ -331,6 +331,7 @@ def deletePost(baseDir: str,httpPrefix: str,nickname: str,domain: str,postFilena
|
|||
|
||||
# remove from moderation index file
|
||||
if hasObject:
|
||||
if isinstance(postJsonObject['object'], dict):
|
||||
if postJsonObject['object'].get('moderationStatus'):
|
||||
if postJsonObject.get('id'):
|
||||
postId=postJsonObject['id'].replace('/activity','')
|
||||
|
|
Loading…
Reference in New Issue