Skip to content

Commit

Permalink
Update APIV1Controller, add mobile_apis to /api/v1/instance end…
Browse files Browse the repository at this point in the history
…point
  • Loading branch information
dansup committed Nov 23, 2019
1 parent d11e82c commit 5740746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Api/ApiV1Controller.php
Expand Up @@ -906,7 +906,9 @@ public function instance(Request $request)
'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);
Expand Down

0 comments on commit 5740746

Please sign in to comment.