mirror of https://gitlab.com/bashrc2/epicyon
Use function to check for dict
parent
4ba64797ef
commit
8ae7262e9a
2
utils.py
2
utils.py
|
@ -1302,7 +1302,7 @@ def _deleteHashtagsOnPost(baseDir: str, postJsonObject: {}) -> None:
|
|||
"""Removes hashtags when a post is deleted
|
||||
"""
|
||||
removeHashtagIndex = False
|
||||
if isinstance(postJsonObject['object'], dict):
|
||||
if hasObjectDict(postJsonObject):
|
||||
if postJsonObject['object'].get('content'):
|
||||
if '#' in postJsonObject['object']['content']:
|
||||
removeHashtagIndex = True
|
||||
|
|
Loading…
Reference in New Issue