diff --git a/webapp_utils.py b/webapp_utils.py index 1ed02e6e1..307f95fbd 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -917,7 +917,8 @@ def getPostAttachmentsAsHtml(postJsonObject: {}, boxName: str, translate: {}, if attach.get('name'): imageDescription = attach['name'].replace('"', "'") if _isImageMimeType(mediaType): - if _isAttachedImage(attach['url']): + imageUrl = attach['url'] + if _isAttachedImage(attach['url']) and 'svg' not in mediaType: if not attachmentStr: attachmentStr += '
\n' mediaStyleAdded = True @@ -927,10 +928,10 @@ def getPostAttachmentsAsHtml(postJsonObject: {}, boxName: str, translate: {}, if boxName == 'tlmedia': galleryStr += '\n' galleryStr += '
\n' - attachmentStr += '' + attachmentStr += '' attachmentStr += \ - '' + imageDescription + '\n' attachmentCtr += 1