Update Site Config

This commit is contained in:
Daniel Supernault 2019-11-02 21:12:44 -06:00
parent 6fc0fe67ee
commit 6d40876ae8
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
2 changed files with 15 additions and 1 deletions

View File

@ -36,6 +36,14 @@ class Config {
'site' => [
'domain' => config('pixelfed.domain.app'),
'url' => config('app.url')
],
'username' => [
'remote' => [
'formats' => config('instance.username.remote.formats'),
'format' => config('instance.username.remote.format'),
'custom' => config('instance.username.remote.custom')
]
]
];
});

View File

@ -39,5 +39,11 @@ return [
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
]
],
'username' => [
'remote' => [
'formats' => ['@', 'from', 'custom'],
'format' => in_array(env('USERNAME_REMOTE_FORMAT', '@'), ['@','from','custom']) ? env('USERNAME_REMOTE_FORMAT', '@') : '@',
'custom' => env('USERNAME_REMOTE_CUSTOM_TEXT', null)
]
],
];