Browse Source

Update SiteController

Daniel Supernault 6 years ago
parent
commit
4539afabdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/SiteController.php

+ 1 - 1
app/Http/Controllers/SiteController.php

@@ -46,7 +46,7 @@ class SiteController extends Controller
             $page = Page::whereSlug('/site/about')->whereActive(true)->first();
             $stats = [
                 'posts' => Status::whereLocal(true)->count(),
-                'users' => User::count(),
+                'users' => User::whereNull('status')->count(),
                 'admin' => User::whereIsAdmin(true)->first()
             ];
             if($page) {