1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #1771 from stom79/api_v1_instance

Add some elements in api/v1/instance
This commit is contained in:
daniel 2019-10-07 12:40:39 -06:00 committed by GitHub
commit 86bef313a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}