1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update ApiV1Controller, fix version on instance endpoint

This commit is contained in:
Daniel Supernault 2022-01-09 15:40:28 -07:00
parent 4ab99d66d1
commit a6261221ad
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1177,7 +1177,7 @@ class ApiV1Controller extends Controller
*/
public function instance(Request $request)
{
$res = Cache::remember('api:v1:instance-data-response', 900, function () {
$res = Cache::remember('api:v1:instance-data-response-v0', 1800, function () {
$contact = Cache::remember('api:v1:instance-data:contact', 604800, function () {
$admin = User::whereIsAdmin(true)->first();
return $admin && isset($admin->profile_id) ?
@ -1212,7 +1212,7 @@ class ApiV1Controller extends Controller
'short_description' => 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms',
'description' => 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms',
'email' => config('instance.email'),
'version' => config('pixelfed.version'),
'version' => '2.7.2 (compatible; Pixelfed ' . config('pixelfed.version') .')',
'urls' => [],
'stats' => $stats,
'thumbnail' => url('headers/default.jpg'),