]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Strings.php
Preparations for a moderator role
[friendica.git] / 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) {