Merge pull request #2691 from pixelfed/staging

Staging
pull/2696/head
daniel 2021-03-01 02:21:02 -07:00 zatwierdzone przez GitHub
commit d2ff146526
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 12 dodań i 4 usunięć

Wyświetl plik

@ -15,6 +15,10 @@ class Bouncer {
return;
}
if($status->profile->user->is_admin == true) {
return;
}
$exemptionKey = 'pf:bouncer_v0:exemption_by_pid:' . $status->profile_id;
$exemptionTtl = now()->addDays(12);
@ -50,6 +54,14 @@ class Bouncer {
return;
}
if( $status->profile->created_at->gt(now()->subMonths(6)) &&
$status->profile->status_count < 2 &&
$status->profile->bio &&
$status->profile->website
) {
return (new self)->handle($status);
}
$recentKey = 'pf:bouncer_v0:recent_by_pid:' . $status->profile_id;
$recentTtl = now()->addHours(28);
@ -86,10 +98,6 @@ class Bouncer {
return;
}
if($status->profile->user->is_admin == true) {
return;
}
return (new self)->handle($status);
}