forked from indymedia/epicyon
Reject announce if it is not a dict
parent
e663ec0505
commit
169ce16da3
2
posts.py
2
posts.py
|
@ -2591,10 +2591,10 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain:
|
|||
|
||||
if not isinstance(announcedJson, dict):
|
||||
print('WARN: announce json is not a dict - '+postJsonObject['object'])
|
||||
rejectAnnounce(announceFilename)
|
||||
return None
|
||||
if not announcedJson.get('id'):
|
||||
rejectAnnounce(announceFilename)
|
||||
#pprint(announcedJson)
|
||||
return None
|
||||
if '/statuses/' not in announcedJson['id']:
|
||||
rejectAnnounce(announceFilename)
|
||||
|
|
Loading…
Reference in New Issue