From 85bdea43755d99f0dc7295cf3da8fe3b922c7ed7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 29 Apr 2019 19:51:17 -0600 Subject: [PATCH] Update FederationController, closes #1213 --- app/Http/Controllers/FederationController.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/Http/Controllers/FederationController.php b/app/Http/Controllers/FederationController.php index 95dbb461c..ccba79d20 100644 --- a/app/Http/Controllers/FederationController.php +++ b/app/Http/Controllers/FederationController.php @@ -91,14 +91,6 @@ class FederationController extends Controller public function nodeinfo() { $res = Cache::remember('api:nodeinfo', now()->addMinutes(15), function () { - $git = Cache::remember('api:nodeinfo:git', now()->addHours(1), function() { - $hash = exec('git rev-parse HEAD'); - $gitUrl = 'https://github.com/pixelfed/pixelfed/commit/' . $hash; - return [ - 'commit_hash' => $hash, - 'url' => $gitUrl - ]; - }); $activeHalfYear = Cache::remember('api:nodeinfo:ahy', now()->addHours(12), function() { $count = collect([]); // $likes = Like::select('profile_id')->where('created_at', '>', now()->subMonths(6)->toDateTimeString())->groupBy('profile_id')->pluck('profile_id')->toArray(); @@ -125,7 +117,6 @@ class FederationController extends Controller 'software' => [ 'homepage' => 'https://pixelfed.org', 'repo' => 'https://github.com/pixelfed/pixelfed', - 'git' => $git ], 'captcha' => (bool) config('pixelfed.recaptcha'), ],