From: Michael Date: Sat, 28 Mar 2020 15:18:12 +0000 (+0000) Subject: Exchange "part" with "fragment" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ba4333f70af1a11d28fd44f86cd35a5a7d78c2a;p=friendica.git Exchange "part" with "fragment" --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 7bf76b03b1..ec33864f4d 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -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); }