]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
Merge pull request #5921 from annando/ap-video
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index 69b70249ccbee0966804c7362630367beae01b63..c481423a675c495349ad2d27c7d56f8009cbd5a9 100644 (file)
@@ -308,6 +308,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)) {