1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

API: Fixed misaligned image datetime format

For #4294
This commit is contained in:
Dan Brown
2023-06-10 10:52:39 +01:00
parent 59c7077fd9
commit 1e220c473f
5 changed files with 9 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ class ImageGalleryApiController extends ApiController
protected function formatForSingleResponse(Image $image): array
{
$this->imageRepo->loadThumbs($image);
$data = $image->getAttributes();
$data = $image->toArray();
$data['created_by'] = $image->createdBy;
$data['updated_by'] = $image->updatedBy;
$data['content'] = [];