X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FPollContacts.php;h=b61f5aebb82afb194f93de7f6c1972146c829f33;hb=60532ee7e4152af9997e0d7b69c7b35262d5528d;hp=b3ac529de4aa8569dc9f6c9be9a82bc3b43e8c79;hpb=741bc98174f81b9cd65432716a21168dd34468a7;p=friendica.git diff --git a/src/Worker/PollContacts.php b/src/Worker/PollContacts.php index b3ac529de4..b61f5aebb8 100644 --- a/src/Worker/PollContacts.php +++ b/src/Worker/PollContacts.php @@ -1,6 +1,6 @@ UTC_TIMESTAMP() - INTERVAL ? DAY)", 0, $abandon_days]); + ["`uid` != ? AND `uid` IN (SELECT `uid` FROM `user` WHERE NOT `account_expired` AND NOT `account_removed` AND `login_date` > ?)", 0, DateTimeFormat::utc('now - ' . $abandon_days . ' days')]); } else { $condition = DBA::mergeConditions($condition, ["`uid` != ? AND `uid` IN (SELECT `uid` FROM `user` WHERE NOT `account_expired` AND NOT `account_removed`)", 0]);