X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContact.php;h=790badc9d2d3e2510f49416c4e568c22ed4a075f;hb=80da47921e2faa528bd16e587fe23ec340c847d6;hp=ae3b06b5067dc5ee2b0e22293ac2c5a2d8bf6387;hpb=6a2c0b3cc7ff6924cfbc7f46ec9427d4677a504c;p=friendica.git diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index ae3b06b506..790badc9d2 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,27 +1,38 @@ . + * */ namespace Friendica\Worker; use Friendica\Core\Logger; use Friendica\Model\Contact; -use Friendica\Util\DateTimeFormat; -use Friendica\Database\DBA; class UpdateContact { + /** + * Update contact data via probe + * @param int $contact_id Contact ID + */ public static function execute($contact_id) { $success = Contact::updateFromProbe($contact_id); - // Update the "updated" field if the contact could be probed. - // We don't do this in the function above, since we don't want to - // update the contact whenever that function is called from anywhere. - if ($success) { - DBA::update('contact', ['updated' => DateTimeFormat::utcNow()], ['id' => $contact_id]); - } Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]); }