mirror of https://gitlab.com/bashrc2/epicyon
Include announces in media timeline
parent
0b2a7c1676
commit
dd3ba06447
2
posts.py
2
posts.py
|
@ -1692,6 +1692,8 @@ def isDM(postJsonObject: {}) -> bool:
|
||||||
def isImageMedia(postJsonObject: {}) -> bool:
|
def isImageMedia(postJsonObject: {}) -> bool:
|
||||||
"""Returns true if the given post has attached image media
|
"""Returns true if the given post has attached image media
|
||||||
"""
|
"""
|
||||||
|
if postJsonObject['type']=='Announce':
|
||||||
|
return True
|
||||||
if postJsonObject['type']!='Create':
|
if postJsonObject['type']!='Create':
|
||||||
return False
|
return False
|
||||||
if not postJsonObject.get('object'):
|
if not postJsonObject.get('object'):
|
||||||
|
|
Loading…
Reference in New Issue