Update ApiV1Controller, fix instance endpoint #2233
This commit is contained in:
parent
22f2da89d3
commit
b7ee9981eb
1 changed files with 6 additions and 6 deletions
|
@ -938,7 +938,7 @@ class ApiV1Controller extends Controller
|
|||
'description' => 'Pixelfed - Photo sharing for everyone',
|
||||
'email' => config('instance.email'),
|
||||
'languages' => ['en'],
|
||||
'max_toot_chars' => config('pixelfed.max_caption_length'),
|
||||
'max_toot_chars' => (int) config('pixelfed.max_caption_length'),
|
||||
'registrations' => config('pixelfed.open_registration'),
|
||||
'stats' => [
|
||||
'user_count' => 0,
|
||||
|
@ -951,11 +951,11 @@ class ApiV1Controller extends Controller
|
|||
'urls' => [],
|
||||
'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'),
|
||||
'max_photo_size' => (int) config('pixelfed.max_photo_size'),
|
||||
'max_avatar_size' => (int) config('pixelfed.max_avatar_size'),
|
||||
'max_caption_length' => (int) config('pixelfed.max_caption_length'),
|
||||
'max_bio_length' => (int) config('pixelfed.max_bio_length'),
|
||||
'max_album_length' => (int) config('pixelfed.max_album_length'),
|
||||
'mobile_apis' => config('pixelfed.oauth_enabled')
|
||||
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue