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]