From a91263c208ce6107ebcdae7c38ddfd101e760f19 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 17:39:39 +0100 Subject: [PATCH] Only bliurhash png --- media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media.py b/media.py index 8bbcebc54..299f2a218 100644 --- a/media.py +++ b/media.py @@ -106,7 +106,7 @@ def attachImage(baseDir: str,httpPrefix: str,domain: str,port: int, \ 'type': 'Document', 'url': httpPrefix+'://'+domain+'/'+mediaPath } - if useBlurhash and not mediaType.startswith('video'): + if useBlurhash and fileExtension=='png': attachmentJson['blurhash']=getImageHash(imageFilename) postJson['attachment']=[attachmentJson]