mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update bouncer
This commit is contained in:
parent
5fffe1d0dd
commit
5ac1746aff
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Bouncer {
|
|||
$recentKey = 'pf:bouncer:recent_by_pid:' . $status->profile_id;
|
||||
$recentTtl = now()->addMinutes(5);
|
||||
$recent = Cache::remember($recentKey, $recentTtl, function() use($status) {
|
||||
return $status->profile->created_at->gt(now()->subMonths(3)) || $status->profile->statuses()->count() == 0;
|
||||
return $status->profile->created_at->gt(now()->subMonths(2)) || $status->profile->statuses()->count() == 0;
|
||||
});
|
||||
|
||||
if(!$recent) {
|
||||
|
|
Loading…
Reference in a new issue