]> git.mxchange.org Git - friendica.git/commitdiff
Exchange "part" with "fragment"
authorMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 15:18:12 +0000 (15:18 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 15:18:12 +0000 (15:18 +0000)
src/Model/APContact.php

index 7bf76b03b1ddcc3d4963db10421d06014be4dae8..ec33864f4dc78f9be9cd70e946b406b1d36879a6 100644 (file)
@@ -263,11 +263,11 @@ class APContact
                // When the photo is too large, try to shorten it by removing parts
                if (strlen($apcontact['photo']) > 255) {
                        $parts = parse_url($apcontact['photo']);
-                       unset($parts['query']);
+                       unset($parts['fragment']);
                        $apcontact['photo'] = Network::unparseURL($parts);
 
                        if (strlen($apcontact['photo']) > 255) {
-                               unset($parts['fragment']);
+                               unset($parts['query']);
                                $apcontact['photo'] = Network::unparseURL($parts);
                        }