Improved support for "Page" type

This commit is contained in:
Michael 2022-01-27 17:51:23 +00:00
parent 9d25c3a8f6
commit 9eec2bf5f3
3 changed files with 15 additions and 1 deletions

View file

@ -125,7 +125,7 @@ class Processor
$data = ['uri-id' => $uriid];
$data['type'] = Post\Media::UNKNOWN;
$data['url'] = $attachment['url'];
$data['mimetype'] = $attachment['mediaType'];
$data['mimetype'] = $attachment['mediaType'] ?? null;
$data['height'] = $attachment['height'] ?? null;
$data['width'] = $attachment['width'] ?? null;
$data['size'] = $attachment['size'] ?? null;