mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 01:33:16 +00:00
commit
ca839e68d7
1 changed files with 5 additions and 5 deletions
|
@ -79,19 +79,19 @@ class SiteController extends Controller
|
||||||
|
|
||||||
public function privacy(Request $request)
|
public function privacy(Request $request)
|
||||||
{
|
{
|
||||||
return Cache::remember('site:privacy', now()->addDays(120), function() {
|
$page = Cache::remember('site:privacy', now()->addDays(120), function() {
|
||||||
$slug = '/site/privacy';
|
$slug = '/site/privacy';
|
||||||
$page = Page::whereSlug($slug)->whereActive(true)->first();
|
$page = Page::whereSlug($slug)->whereActive(true)->first();
|
||||||
return View::make('site.privacy')->with(compact('page'))->render();
|
|
||||||
});
|
});
|
||||||
|
return View::make('site.privacy')->with(compact('page'))->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function terms(Request $request)
|
public function terms(Request $request)
|
||||||
{
|
{
|
||||||
return Cache::remember('site:terms', now()->addDays(120), function() {
|
$page = Cache::remember('site:terms', now()->addDays(120), function() {
|
||||||
$slug = '/site/terms';
|
$slug = '/site/terms';
|
||||||
$page = Page::whereSlug($slug)->whereActive(true)->first();
|
return Page::whereSlug($slug)->whereActive(true)->first();
|
||||||
return View::make('site.terms')->with(compact('page'))->render();
|
|
||||||
});
|
});
|
||||||
|
return View::make('site.terms')->with(compact('page'))->render();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue