mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Fix instance API
This commit is contained in:
parent
1c441f5549
commit
1bdfa7a4a2
1 changed files with 3 additions and 3 deletions
|
@ -1250,8 +1250,8 @@ class ApiV1Controller extends Controller
|
||||||
return [
|
return [
|
||||||
'uri' => config('pixelfed.domain.app'),
|
'uri' => config('pixelfed.domain.app'),
|
||||||
'title' => config('app.name'),
|
'title' => config('app.name'),
|
||||||
'short_description' => 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms',
|
'short_description' => config_cache('app.short_description'),
|
||||||
'description' => 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms',
|
'description' => config_cache('app.description'),
|
||||||
'email' => config('instance.email'),
|
'email' => config('instance.email'),
|
||||||
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') .')',
|
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') .')',
|
||||||
'urls' => [
|
'urls' => [
|
||||||
|
@ -1259,7 +1259,7 @@ class ApiV1Controller extends Controller
|
||||||
],
|
],
|
||||||
'stats' => $stats,
|
'stats' => $stats,
|
||||||
'thumbnail' => url('img/pixelfed-icon-color.png'),
|
'thumbnail' => url('img/pixelfed-icon-color.png'),
|
||||||
'languages' => ['en'],
|
'languages' => [config('app.locale')],
|
||||||
'registrations' => (bool) config_cache('pixelfed.open_registration'),
|
'registrations' => (bool) config_cache('pixelfed.open_registration'),
|
||||||
'approval_required' => false,
|
'approval_required' => false,
|
||||||
'contact_account' => $contact,
|
'contact_account' => $contact,
|
||||||
|
|
Loading…
Add table
Reference in a new issue