Update function calls to use Model\User and Object\Contact

This commit is contained in:
Hypolite Petovan 2017-12-03 22:29:06 -05:00
parent b0dcfc2724
commit 27212c7f39
4 changed files with 8 additions and 11 deletions

View file

@ -12,6 +12,7 @@ use Friendica\Core\Config;
use Friendica\Database\DBM;
use Friendica\Model\GlobalContact;
use Friendica\Network\Probe;
use Friendica\Object\Contact;
use Friendica\Protocol\PortableContact;
use dba;
@ -263,8 +264,8 @@ class CronJobs
$r = q("SELECT `uid` FROM `user` WHERE NOT EXISTS (SELECT `uid` FROM `contact` WHERE `contact`.`uid` = `user`.`uid` AND `contact`.`self`)");
if (DBM::is_result($r)) {
foreach ($r AS $user) {
user_create_self_contact($user['uid']);
logger('Create missing self contact for user ' . $user['uid']);
Contact::createSelfFromUserId($user['uid']);
}
}