]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/PortableContact.php
Switch to parsing compacted JSON data
[friendica.git] / src / Protocol / PortableContact.php
index 61274dc2be86a1e24951b21d9799f6e1b36e7a4a..280dbe72c2a2afe151b5c5d47dd8e11a561fc182 100644 (file)
@@ -1157,9 +1157,9 @@ class PortableContact
 
                                if (isset($data['version'])) {
                                        $platform = "Mastodon";
-                                       $version = $data['version'];
-                                       $site_name = $data['title'];
-                                       $info = $data['description'];
+                                       $version = defaults($data, 'version', '');
+                                       $site_name = defaults($data, 'title', '');
+                                       $info = defaults($data, 'description', '');
                                        $network = Protocol::OSTATUS;
                                }