From 1357640b6d4bb577baa596bdc74b3175c259dcf0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 22 Oct 2018 18:05:05 -0600 Subject: [PATCH] Update FederationController --- app/Http/Controllers/FederationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/FederationController.php b/app/Http/Controllers/FederationController.php index 6d59abcb..af47d919 100644 --- a/app/Http/Controllers/FederationController.php +++ b/app/Http/Controllers/FederationController.php @@ -104,8 +104,8 @@ class FederationController extends Controller 'localComments' => \App\Status::whereLocal(true)->whereNotNull('in_reply_to_id')->count(), 'users' => [ 'total' => \App\User::count(), - 'activeHalfyear' => \App\AccountLog::select('action','user_id')->whereAction('auth.login')->where('updated_at', '>',Carbon::now()->subMonths(6)->toDateTimeString())->groupBy('user_id')->get()->count(), - 'activeMonth' => \App\AccountLog::select('action','user_id')->whereAction('auth.login')->where('updated_at', '>',Carbon::now()->subMonths(1)->toDateTimeString())->groupBy('user_id')->get()->count(), + 'activeHalfyear' => \App\AccountLog::select('user_id')->whereAction('auth.login')->where('updated_at', '>',Carbon::now()->subMonths(6)->toDateTimeString())->groupBy('user_id')->get()->count(), + 'activeMonth' => \App\AccountLog::select('user_id')->whereAction('auth.login')->where('updated_at', '>',Carbon::now()->subMonths(1)->toDateTimeString())->groupBy('user_id')->get()->count(), ], ], 'version' => '2.0',