]> git.mxchange.org Git - friendica.git/commitdiff
Added Worker
authorMichael <heluecht@pirati.ca>
Mon, 8 Apr 2019 21:06:15 +0000 (21:06 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 8 Apr 2019 21:06:15 +0000 (21:06 +0000)
src/Worker/UpdateContact.php [new file with mode: 0644]

diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php
new file mode 100644 (file)
index 0000000..fab97a9
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * @file src/Worker/UpdateContact.php
+ */
+
+namespace Friendica\Worker;
+
+use Friendica\Core\Logger;
+use Friendica\Model\Contact;
+
+class UpdateContact
+{
+       public static function execute($contact_id)
+       {
+               $success = Contact::updateFromProbe($contact_id);
+               Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]);
+       }
+}