]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
New option to disable the fetching of parents
[friendica.git] / src / Model / APContact.php
index bb6f12e10c292c4c62bd36bb73c2cb559d90953a..38ec423e89cf2794b9389ca2e7b980aa6743da15 100644 (file)
@@ -383,11 +383,11 @@ class APContact
                if (strlen($apcontact['photo']) > 255) {
                        $parts = parse_url($apcontact['photo']);
                        unset($parts['fragment']);
-                       $apcontact['photo'] = Uri::fromParts($parts);
+                       $apcontact['photo'] = (string)Uri::fromParts($parts);
 
                        if (strlen($apcontact['photo']) > 255) {
                                unset($parts['query']);
-                               $apcontact['photo'] = Uri::fromParts($parts);
+                               $apcontact['photo'] = (string)Uri::fromParts($parts);
                        }
 
                        if (strlen($apcontact['photo']) > 255) {