Update PublicApiController, fix HomeTimeline cache ttl

This commit is contained in:
Daniel Supernault 2019-08-17 23:39:54 -06:00
parent 91e58591be
commit 0d350ea03e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -347,7 +347,7 @@ class PublicApiController extends Controller
return $following->push($pid)->toArray();
});
$private = Cache::remember('profiles:private', 1440, function() {
$private = Cache::remember('profiles:private', now()->addMinutes(1440), function() {
return Profile::whereIsPrivate(true)
->orWhere('unlisted', true)
->orWhere('status', '!=', null)