Add fallback for attachments uploaded via the other platforms
This commit is contained in:
parent
909c315a44
commit
6fdbc182ca
|
@ -133,7 +133,8 @@ export const parseAttachment = (data) => {
|
||||||
const masto = !data.hasOwnProperty('oembed')
|
const masto = !data.hasOwnProperty('oembed')
|
||||||
|
|
||||||
if (masto) {
|
if (masto) {
|
||||||
output.mimetype = data.pleroma.mime_type
|
// Not exactly same...
|
||||||
|
output.mimetype = data.pleroma ? data.pleroma.mime_type : data.type
|
||||||
output.meta = data.meta // not present in BE yet
|
output.meta = data.meta // not present in BE yet
|
||||||
} else {
|
} else {
|
||||||
output.mimetype = data.mimetype
|
output.mimetype = data.mimetype
|
||||||
|
|
Loading…
Reference in New Issue