Check for type

main
Bob Mottram 2021-10-30 20:26:52 +01:00
parent ace5cafa6d
commit 2fd250ceec
1 changed files with 2 additions and 0 deletions

View File

@ -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'):