Browse Source

Update instance endpoint, add custom description

Daniel Supernault 4 years ago
parent
commit
668e936eb5
2 changed files with 4 additions and 4 deletions
  1. 1 1
      app/Http/Controllers/Api/ApiV1Controller.php
  2. 3 3
      config/instance.php

+ 1 - 1
app/Http/Controllers/Api/ApiV1Controller.php

@@ -960,7 +960,7 @@ class ApiV1Controller extends Controller
         $res = [
         $res = [
         	'approval_required' => false,
         	'approval_required' => false,
         	'contact_account' => null,
         	'contact_account' => null,
-            'description' => 'Pixelfed - Photo sharing for everyone',
+            'description' => config('instance.description'),
             'email' => config('instance.email'),
             'email' => config('instance.email'),
             'invites_enabled' => false,
             'invites_enabled' => false,
             'rules' => [],
             'rules' => [],

+ 3 - 3
config/instance.php

@@ -2,7 +2,7 @@
 
 
 return [
 return [
 
 
-	'description' => env('INSTANCE_DESCRIPTION', null),
+	'description' => env('INSTANCE_DESCRIPTION', 'Pixelfed - Photo sharing for everyone'),
 
 
 	'contact' => [
 	'contact' => [
 		'enabled' => env('INSTANCE_CONTACT_FORM', false),
 		'enabled' => env('INSTANCE_CONTACT_FORM', false),
@@ -18,7 +18,7 @@ return [
 			'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
 			'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
 		],
 		],
 	],
 	],
-	
+
 	'email' => env('INSTANCE_CONTACT_EMAIL'),
 	'email' => env('INSTANCE_CONTACT_EMAIL'),
 
 
 	'timeline' => [
 	'timeline' => [
@@ -72,4 +72,4 @@ return [
 			'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
 			'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
 		]
 		]
 	],
 	],
-];
+];