1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 16:53:17 +00:00

Update APIV1Controller, add ``mobile_apis`` to /api/v1/instance endpoint

This commit is contained in:
Daniel Supernault 2019-11-22 21:23:38 -07:00
parent d11e82c3d9
commit 5740746339
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -906,7 +906,9 @@ class ApiV1Controller extends Controller
'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_album_length' => config('pixelfed.max_album_length'),
'mobile_apis' => config('pixelfed.oauth_enabled')
]
];
return response()->json($res, 200, [], JSON_PRETTY_PRINT);