forked from mirror/pixelfed
Update ApiV1Controller, fix instance endpoint #2233
This commit is contained in:
parent
22f2da89d3
commit
b7ee9981eb
|
@ -938,7 +938,7 @@ class ApiV1Controller extends Controller
|
||||||
'description' => 'Pixelfed - Photo sharing for everyone',
|
'description' => 'Pixelfed - Photo sharing for everyone',
|
||||||
'email' => config('instance.email'),
|
'email' => config('instance.email'),
|
||||||
'languages' => ['en'],
|
'languages' => ['en'],
|
||||||
'max_toot_chars' => config('pixelfed.max_caption_length'),
|
'max_toot_chars' => (int) config('pixelfed.max_caption_length'),
|
||||||
'registrations' => config('pixelfed.open_registration'),
|
'registrations' => config('pixelfed.open_registration'),
|
||||||
'stats' => [
|
'stats' => [
|
||||||
'user_count' => 0,
|
'user_count' => 0,
|
||||||
|
@ -951,11 +951,11 @@ class ApiV1Controller extends Controller
|
||||||
'urls' => [],
|
'urls' => [],
|
||||||
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') . ')',
|
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') . ')',
|
||||||
'environment' => [
|
'environment' => [
|
||||||
'max_photo_size' => config('pixelfed.max_photo_size'),
|
'max_photo_size' => (int) config('pixelfed.max_photo_size'),
|
||||||
'max_avatar_size' => config('pixelfed.max_avatar_size'),
|
'max_avatar_size' => (int) config('pixelfed.max_avatar_size'),
|
||||||
'max_caption_length' => config('pixelfed.max_caption_length'),
|
'max_caption_length' => (int) config('pixelfed.max_caption_length'),
|
||||||
'max_bio_length' => config('pixelfed.max_bio_length'),
|
'max_bio_length' => (int) config('pixelfed.max_bio_length'),
|
||||||
'max_album_length' => config('pixelfed.max_album_length'),
|
'max_album_length' => (int) config('pixelfed.max_album_length'),
|
||||||
'mobile_apis' => config('pixelfed.oauth_enabled')
|
'mobile_apis' => config('pixelfed.oauth_enabled')
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue