From b32cf31cdd15aca1ce7010514ea7ee0e8e4cce1a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 17 Dec 2019 20:56:09 -0700 Subject: [PATCH] Update site config service --- app/Util/Site/Config.php | 16 +++++++++++++++- config/instance.php | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/Util/Site/Config.php b/app/Util/Site/Config.php index f80d68c26..ffa80a522 100644 --- a/app/Util/Site/Config.php +++ b/app/Util/Site/Config.php @@ -3,6 +3,7 @@ namespace App\Util\Site; use Cache; +use Illuminate\Support\Str; class Config { @@ -35,7 +36,8 @@ class Config { 'site' => [ 'domain' => config('pixelfed.domain.app'), - 'url' => config('app.url') + 'url' => config('app.url'), + 'description' => config('instance.description') ], 'username' => [ @@ -44,6 +46,18 @@ class Config { 'format' => config('instance.username.remote.format'), 'custom' => config('instance.username.remote.custom') ] + ], + + 'features' => [ + 'mobile_apis' => config('pixelfed.oauth_enabled'), + 'circles' => false, + 'stories' => false, + 'video' => Str::contains(config('pixelfed.media_types'), 'video/mp4'), + 'import' => [ + 'instagram' => config('pixelfed.import.instagram.enabled'), + 'mastodon' => false, + 'pixelfed' => false + ] ] ]; }); diff --git a/config/instance.php b/config/instance.php index 706d06274..ea37a5b30 100644 --- a/config/instance.php +++ b/config/instance.php @@ -2,6 +2,7 @@ return [ + 'description' => env('INSTANCE_DESCRIPTION', null), 'announcement' => [ 'enabled' => env('INSTANCE_ANNOUNCEMENT_ENABLED', false), 'message' => env('INSTANCE_ANNOUNCEMENT_MESSAGE', 'Example announcement message.
Something else here')