Explorar o código

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

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
5740746339
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/Http/Controllers/Api/ApiV1Controller.php

+ 3 - 1
app/Http/Controllers/Api/ApiV1Controller.php

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