From 2a849be650b1625388b1039ca98096ea8a8c7007 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 7 Oct 2019 18:35:13 +0200 Subject: [PATCH] Add some elements in api/v1/instance --- app/Http/Controllers/Api/ApiV1Controller.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index e99d45c77..ad8772230 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -900,7 +900,14 @@ class ApiV1Controller extends Controller 'title' => 'Pixelfed (' . config('pixelfed.domain.app') . ')', 'uri' => config('app.url'), 'urls' => [], - 'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') . ')' + 'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') . ')', + 'environment' => [ + 'max_photo_size' => config('pixelfed.max_photo_size'), + 'max_avatar_size' => config('pixelfed.max_avatar_size'), + 'max_caption_length' => config('pixelfed.max_caption_length'), + 'max_bio_length' => config('pixelfed.max_bio_length'), + 'max_album_length' => config('pixelfed.max_album_length') + ] ]; return response()->json($res, 200, [], JSON_PRETTY_PRINT); }