]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Preparations for a relocation message / fix for notice
[friendica.git] / src / Model / APContact.php
index c7cf54b7209e2d60188bd5f352abcce2dc19c5a4..917e0895dcb1ff8020c069fd970d0057a136a49c 100644 (file)
@@ -106,6 +106,10 @@ class APContact extends BaseObject
 
                $compacted = JsonLD::compact($data);
 
+               if (empty($compacted['@id'])) {
+                       return false;
+               }
+
                $apcontact = [];
                $apcontact['url'] = $compacted['@id'];
                $apcontact['uuid'] = JsonLD::fetchElement($compacted, 'diaspora:guid');