X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=aa043468caa9e40ba64483ffba8a406c5fcd666f;hb=de2898988bd99aad8c74d077920d432bc536c2fe;hp=551d208fe4230500c86afc1b8748525e9248c340;hpb=d99286640d44bae003159e34ca520fa13135b59d;p=friendica.git diff --git a/update.php b/update.php index 551d208fe4..aa043468ca 100644 --- a/update.php +++ b/update.php @@ -53,6 +53,7 @@ use Friendica\Model\ItemURI; use Friendica\Model\Notification; use Friendica\Model\Photo; use Friendica\Model\Post; +use Friendica\Model\Profile; use Friendica\Model\Storage; use Friendica\Worker\Delivery; @@ -98,8 +99,9 @@ function update_1298() DBA::update('profile', [$translateKey => $key], ['id' => $data['id']]); Logger::notice('Updated contact', ['action' => 'update', 'contact' => $data['id'], "$translateKey" => $key, 'was' => $data[$translateKey]]); - Worker::add(PRIORITY_LOW, 'ProfileUpdate', $data['id']); + Contact::updateSelfFromUserID($data['id']); + Profile::publishUpdate($data['id']); $success++; } } @@ -153,7 +155,9 @@ function update_1323() { $users = DBA::select('user', ['uid']); while ($user = DBA::fetch($users)) { - Contact::updateSelfFromUserID($user['uid']); + if (Contact::updateSelfFromUserID($user['uid'])) { + Profile::publishUpdate($user['uid']); + } } DBA::close($users);