mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update site config
This commit is contained in:
parent
385c166944
commit
6d59dc8e1e
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,7 @@ class Config {
|
||||||
public static function get() {
|
public static function get() {
|
||||||
return Cache::remember(self::CACHE_KEY, 900, function() {
|
return Cache::remember(self::CACHE_KEY, 900, function() {
|
||||||
return [
|
return [
|
||||||
|
'version' => config('pixelfed.version'),
|
||||||
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
|
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
|
||||||
'uploader' => [
|
'uploader' => [
|
||||||
'max_photo_size' => (int) config('pixelfed.max_photo_size'),
|
'max_photo_size' => (int) config('pixelfed.max_photo_size'),
|
||||||
|
@ -44,6 +45,14 @@ class Config {
|
||||||
'description' => config_cache('app.short_description')
|
'description' => config_cache('app.short_description')
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'account' => [
|
||||||
|
'max_avatar_size' => config('pixelfed.max_avatar_size'),
|
||||||
|
'max_bio_length' => config('pixelfed.max_bio_length'),
|
||||||
|
'max_name_length' => config('pixelfed.max_name_length'),
|
||||||
|
'min_password_length' => config('pixelfed.min_password_length'),
|
||||||
|
'max_account_size' => config('pixelfed.max_account_size')
|
||||||
|
],
|
||||||
|
|
||||||
'username' => [
|
'username' => [
|
||||||
'remote' => [
|
'remote' => [
|
||||||
'formats' => config('instance.username.remote.formats'),
|
'formats' => config('instance.username.remote.formats'),
|
||||||
|
|
Loading…
Reference in a new issue