Update PublicApiController, fix HomeTimeline cache ttl

pull/1617/head
Daniel Supernault 6 years ago
parent 91e58591be
commit 0d350ea03e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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)

Loading…
Cancel
Save