Update Config util

This commit is contained in:
Daniel Supernault 2020-02-18 00:41:08 -07:00
parent 4c332ce700
commit 765b6187a9
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -10,6 +10,7 @@ class Config {
public static function get() { public static function get() {
return Cache::remember('api:site:configuration', now()->addMinutes(30), function() { return Cache::remember('api:site:configuration', now()->addMinutes(30), function() {
return [ return [
'open_registration' => config('pixelfed.open_registration'),
'uploader' => [ 'uploader' => [
'max_photo_size' => config('pixelfed.max_photo_size'), 'max_photo_size' => config('pixelfed.max_photo_size'),
'max_caption_length' => config('pixelfed.max_caption_length'), 'max_caption_length' => config('pixelfed.max_caption_length'),
@ -35,6 +36,7 @@ class Config {
], ],
'site' => [ 'site' => [
'name' => config('app.name', 'pixelfed'),
'domain' => config('pixelfed.domain.app'), 'domain' => config('pixelfed.domain.app'),
'url' => config('app.url'), 'url' => config('app.url'),
'description' => config('instance.description') 'description' => config('instance.description')