forked from indymedia/epicyon
Back to document
parent
92941ac857
commit
085ea620b8
2
media.py
2
media.py
|
@ -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': mediaType.split('/')[0],
|
'type': 'Document',
|
||||||
'url': httpPrefix+'://'+domain+'/'+mediaPath
|
'url': httpPrefix+'://'+domain+'/'+mediaPath
|
||||||
}
|
}
|
||||||
if useBlurhash and mediaType.startswith('image/'):
|
if useBlurhash and mediaType.startswith('image/'):
|
||||||
|
|
Loading…
Reference in New Issue