Attachment type

main
Bob Mottram 2019-12-04 16:20:54 +00:00
parent bf1d65ea57
commit 92941ac857
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \
attachmentJson={ attachmentJson={
'mediaType': mediaType, 'mediaType': mediaType,
'name': description, 'name': description,
'type': 'Document', 'type': mediaType.split('/')[0],
'url': httpPrefix+'://'+domain+'/'+mediaPath 'url': httpPrefix+'://'+domain+'/'+mediaPath
} }
if useBlurhash and mediaType.startswith('image/'): if useBlurhash and mediaType.startswith('image/'):