]> git.mxchange.org Git - friendica.git/commitdiff
Remove the "www." from the styled URL
authorMichael <heluecht@pirati.ca>
Tue, 6 Jun 2023 20:41:54 +0000 (20:41 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Jun 2023 20:41:54 +0000 (20:41 +0000)
src/Util/Strings.php

index c3b77ab48c919c4d3b3a120e728862f30f474246..bc1a0e4be991e751634c016ae1c5177ea06377bd 100644 (file)
@@ -570,7 +570,7 @@ class Strings
        public static function getStyledURL(string $url): string
        {
                $parts = parse_url($url);
-               $scheme = $parts['scheme'] . '://';
+               $scheme = [$parts['scheme'] . '://www.', $parts['scheme'] . '://'];
                $styled_url = str_replace($scheme, '', $url);
 
                if (strlen($styled_url) > 30) {