From 621795db655ea1fe3b8103044767e02234ea50ca Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 14:24:09 +0100 Subject: [PATCH] Allow video and audio in media timeline --- posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index e99eb4ec8..a0cecf577 100644 --- a/posts.py +++ b/posts.py @@ -1851,7 +1851,9 @@ def isImageMedia(session,baseDir: str,httpPrefix: str,nickname: str,domain: str, return False for attach in postJsonObject['object']['attachment']: 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 False