1
0
Эх сурвалжийг харах

Merge pull request #5667 from pixelfed/staging

Update ApiV1Controller.php
daniel 5 сар өмнө
parent
commit
55f8ca542e

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

@@ -1720,7 +1720,7 @@ class ApiV1Controller extends Controller
                 'approval_required' => (bool) config_cache('instance.curated_registration.enabled'),
                 'contact_account' => $contact,
                 'rules' => $rules,
-                'mobile_registration' => config('auth.in_app_registration'),
+                'mobile_registration' => (bool) config_cache('pixelfed.open_registration') && config('auth.in_app_registration'),
                 'configuration' => [
                     'media_attachments' => [
                         'image_matrix_limit' => 16777216,