mirror of https://gitlab.com/bashrc2/epicyon
Check for type
parent
ace5cafa6d
commit
2fd250ceec
2
utils.py
2
utils.py
|
@ -1615,6 +1615,8 @@ def _deleteHashtagsOnPost(baseDir: str, postJsonObject: {}) -> None:
|
|||
# get the id of the post
|
||||
postId = removeIdEnding(postJsonObject['object']['id'])
|
||||
for tag in postJsonObject['object']['tag']:
|
||||
if not tag.get('type'):
|
||||
continue
|
||||
if tag['type'] != 'Hashtag':
|
||||
continue
|
||||
if not tag.get('name'):
|
||||
|
|
Loading…
Reference in New Issue