]> git.mxchange.org Git - friendica.git/commitdiff
Filling the protocol on ap contact action
authorMichael <heluecht@pirati.ca>
Sun, 5 May 2019 11:02:19 +0000 (11:02 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 5 May 2019 11:02:19 +0000 (11:02 +0000)
src/Protocol/ActivityPub/Processor.php

index 15ec610e502aa9646d1a0758f31f5abd7c8e4daf..3bb0639ab05cd349931475695d2115b03818cad0 100644 (file)
@@ -454,7 +454,7 @@ class Processor
                $cid = Contact::getIdForURL($activity['actor'], $uid);
                if (!empty($cid)) {
                        self::switchContact($cid);
-                       DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
+                       DBA::update('contact', ['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
                        $contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
                } else {
                        $contact = false;
@@ -475,7 +475,7 @@ class Processor
                }
 
                if (empty($contact)) {
-                       DBA::update('contact', ['hub-verify' => $activity['id']], ['id' => $cid]);
+                       DBA::update('contact', ['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
                }
 
                Logger::log('Follow user ' . $uid . ' from contact ' . $cid . ' with id ' . $activity['id']);