1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00

Merge pull request #1586 from pixelfed/frontend-ui-refactor

Update SiteController
This commit is contained in:
daniel 2019-08-09 21:03:47 -06:00 committed by GitHub
commit 905ddf0fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ class SiteController extends Controller
public function about()
{
return Cache::remember('site:about', now()->addHours(12), function() {
app()->setLocale('en');
$page = Page::whereSlug('/site/about')->whereActive(true)->first();
$stats = [
'posts' => Status::whereLocal(true)->count(),