Merge pull request #9485 from MrPetovan/bug/fatal-errors

Ensure we provide a mediaType string to Post\Media::getAttachElement
This commit is contained in:
Michael Vogel 2020-11-02 16:27:52 +01:00 committed by GitHub
commit 5029b992ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,8 +196,12 @@ class Processor
$item['attach'] = '';
}
$item['attach'] .= Post\Media::getAttachElement($attach['url'],
$attach['length'] ?? 0, $attach['mediaType'], $attach['name'] ?? '');
$item['attach'] .= Post\Media::getAttachElement(
$attach['url'],
$attach['length'] ?? 0,
$attach['mediaType'] ?? '',
$attach['name'] ?? ''
);
}
}
}