Include announces in media timeline

main2
Bob Mottram 2019-09-28 13:48:33 +01:00
parent 0b2a7c1676
commit dd3ba06447
1 changed files with 2 additions and 0 deletions

View File

@ -1692,6 +1692,8 @@ def isDM(postJsonObject: {}) -> bool:
def isImageMedia(postJsonObject: {}) -> bool:
"""Returns true if the given post has attached image media
"""
if postJsonObject['type']=='Announce':
return True
if postJsonObject['type']!='Create':
return False
if not postJsonObject.get('object'):