|
|
|
@ -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
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
});
|
|
|
|
|