Ignore Apple's IP

This commit is contained in:
Hillel Coren 2018-07-24 21:32:30 +03:00
parent 3e035410dd
commit 601b123818

View File

@ -132,6 +132,12 @@ class AccountRepository
private function checkForSpammer() private function checkForSpammer()
{ {
$ip = Request::getClientIp(); $ip = Request::getClientIp();
// Apple's IP for their test accounts
if ($ip == '17.200.11.44') {
return;
}
$count = Account::whereIp($ip)->whereHas('users', function ($query) { $count = Account::whereIp($ip)->whereHas('users', function ($query) {
$query->whereRegistered(true); $query->whereRegistered(true);
})->count(); })->count();