mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update SiteController
This commit is contained in:
parent
3f04fce13f
commit
aa7c6632c2
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ class SiteController extends Controller
|
||||||
public function about()
|
public function about()
|
||||||
{
|
{
|
||||||
return Cache::remember('site:about', now()->addHours(12), function() {
|
return Cache::remember('site:about', now()->addHours(12), function() {
|
||||||
|
app()->setLocale('en');
|
||||||
$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(),
|
||||||
|
|
Loading…
Reference in a new issue