]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
OStatus contacts are now automatically converted to AP
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index 166530f472729d2312e5b79769035b541e3c5364..bfc5e6d084d16ef827f134160e1fa49fa864484b 100644 (file)
@@ -298,6 +298,9 @@ class Processor
                $item = ['author-id' => Contact::getIdForURL($activity['actor']),
                        'author-link' => $activity['actor']];
 
+               // Ensure that the contact has got the right network type
+               self::switchContact($item['author-id']);
+
                Contact::addRelationship($owner, $contact, $item);
                $cid = Contact::getIdForURL($activity['actor'], $uid);
                if (empty($cid)) {