Allow video and audio in media timeline

main2
Bob Mottram 2019-10-23 14:24:09 +01:00
parent b0fea9c7f7
commit 621795db65
1 changed files with 3 additions and 1 deletions

View File

@ -1851,7 +1851,9 @@ def isImageMedia(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,
return False return False
for attach in postJsonObject['object']['attachment']: for attach in postJsonObject['object']['attachment']:
if attach.get('mediaType') and attach.get('url'): if attach.get('mediaType') and attach.get('url'):
if attach['mediaType'].startswith('image/'): if attach['mediaType'].startswith('image/') or \
attach['mediaType'].startswith('audio/') or \
attach['mediaType'].startswith('video/'):
return True return True
return False return False