mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Only check the homepage for active users with a homepage
This commit is contained in:
parent
520cb824ec
commit
179d776d0a
1 changed files with 5 additions and 3 deletions
|
@ -27,9 +27,9 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Protocol\ActivityPub\Queue;
|
||||
use Friendica\Protocol\Relay;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
class Cron
|
||||
{
|
||||
|
@ -136,9 +136,11 @@ class Cron
|
|||
Worker::add(Worker::PRIORITY_LOW, 'OptimizeTables');
|
||||
}
|
||||
|
||||
foreach (User::getList(1, PHP_INT_MAX, 'active') as $user) {
|
||||
$users = DBA::select('owner-view', ['uid'], ["`last-activity` > ? AND (`homepage_verified` OR `homepage` != ?)", DateTimeFormat::utc('now - 30 days', 'Y-m-d'), '']);
|
||||
while ($user = DBA::fetch($users)) {
|
||||
Worker::add(Worker::PRIORITY_LOW, 'CheckRelMeProfileLink', $user['uid']);
|
||||
}
|
||||
DBA::close($users);
|
||||
|
||||
// Resubscribe to relay servers
|
||||
Relay::reSubscribe();
|
||||
|
|
Loading…
Reference in a new issue