diff options
Diffstat (limited to 'core/Controller/TextToImageApiController.php')
-rw-r--r-- | core/Controller/TextToImageApiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/TextToImageApiController.php b/core/Controller/TextToImageApiController.php index 4a560d8b04d..c8528c19cc2 100644 --- a/core/Controller/TextToImageApiController.php +++ b/core/Controller/TextToImageApiController.php @@ -155,7 +155,7 @@ class TextToImageApiController extends \OCP\AppFramework\OCSController { $res->throttle(['action' => 'text2image']); return $res; } - $file = $folder->getFolder((string) $task->getId())->getFile((string) $index); + $file = $folder->getFolder((string)$task->getId())->getFile((string)$index); $info = getimagesizefromstring($file->getContent()); return new FileDisplayResponse($file, Http::STATUS_OK, ['Content-Type' => image_type_to_mime_type($info[2])]); @@ -214,7 +214,7 @@ class TextToImageApiController extends \OCP\AppFramework\OCSController { * @param string|null $identifier An arbitrary identifier for the task * @return DataResponse<Http::STATUS_OK, array{tasks: CoreTextToImageTask[]}, array{}>|DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}> * - * 200: Task list returned + * 200: Task list returned */ #[NoAdminRequired] #[AnonRateLimit(limit: 5, period: 120)] |