Add fallback for attachments uploaded via the other platforms

This commit is contained in:
taehoon 2019-03-17 23:42:07 -04:00
parent 909c315a44
commit 6fdbc182ca

View File

@ -133,7 +133,8 @@ export const parseAttachment = (data) => {
const masto = !data.hasOwnProperty('oembed')
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
} else {
output.mimetype = data.mimetype