From a6261221ad276a1e1a0f87fc0de0273406b06d87 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Jan 2022 15:40:28 -0700 Subject: [PATCH] Update ApiV1Controller, fix version on instance endpoint --- app/Http/Controllers/Api/ApiV1Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 369a8996f..00e98a991 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -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'),