mirror of https://gitlab.com/bashrc2/epicyon
Allow video and audio in media timeline
parent
b0fea9c7f7
commit
621795db65
4
posts.py
4
posts.py
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue