mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update PublicApiController, fix HomeTimeline cache ttl
This commit is contained in:
parent
91e58591be
commit
0d350ea03e
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ class PublicApiController extends Controller
|
||||||
return $following->push($pid)->toArray();
|
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)
|
return Profile::whereIsPrivate(true)
|
||||||
->orWhere('unlisted', true)
|
->orWhere('unlisted', true)
|
||||||
->orWhere('status', '!=', null)
|
->orWhere('status', '!=', null)
|
||||||
|
|
Loading…
Reference in a new issue