Return a published and mime type data with sourced media uploads
This commit is contained in:
parent
84efc8a3da
commit
42f0fa2238
3 changed files with 30 additions and 0 deletions
|
@ -74,6 +74,8 @@ class MicropubMediaController extends Controller
|
|||
$media->transform(function ($mediaItem) {
|
||||
return [
|
||||
'url' => $mediaItem->url,
|
||||
'published' => $mediaItem->created_at->toW3cString(),
|
||||
'mime_type' => $mediaItem->getMimeType(),
|
||||
];
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue