mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-12 17:44:31 +00:00
Update SiteController
This commit is contained in:
parent
7ade78b4ee
commit
4539afabdb
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class SiteController extends Controller
|
||||||
$page = Page::whereSlug('/site/about')->whereActive(true)->first();
|
$page = Page::whereSlug('/site/about')->whereActive(true)->first();
|
||||||
$stats = [
|
$stats = [
|
||||||
'posts' => Status::whereLocal(true)->count(),
|
'posts' => Status::whereLocal(true)->count(),
|
||||||
'users' => User::count(),
|
'users' => User::whereNull('status')->count(),
|
||||||
'admin' => User::whereIsAdmin(true)->first()
|
'admin' => User::whereIsAdmin(true)->first()
|
||||||
];
|
];
|
||||||
if($page) {
|
if($page) {
|
||||||
|
|
Loading…
Reference in a new issue