4 * @file src/Worker/UpdateContact.php
7 namespace Friendica\Worker;
9 use Friendica\Core\Logger;
10 use Friendica\Model\Contact;
11 use Friendica\Util\DateTimeFormat;
12 use Friendica\Database\DBA;
16 public static function execute($contact_id)
18 $success = Contact::updateFromProbe($contact_id);
19 // Update the "updated" field if the contact could be probed.
20 // We don't do this in the function above, since we don't want to
21 // update the contact whenever that function is called from anywhere.
23 DBA::update('contact', ['updated' => DateTimeFormat::utcNow()], ['id' => $contact_id]);
26 Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]);