mirror of
https://github.com/friendica/friendica
synced 2025-04-30 15:04:23 +02:00
Remove the "www." from the styled URL
This commit is contained in:
parent
141c55fe7f
commit
09ce625d50
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ class Strings
|
||||||
public static function getStyledURL(string $url): string
|
public static function getStyledURL(string $url): string
|
||||||
{
|
{
|
||||||
$parts = parse_url($url);
|
$parts = parse_url($url);
|
||||||
$scheme = $parts['scheme'] . '://';
|
$scheme = [$parts['scheme'] . '://www.', $parts['scheme'] . '://'];
|
||||||
$styled_url = str_replace($scheme, '', $url);
|
$styled_url = str_replace($scheme, '', $url);
|
||||||
|
|
||||||
if (strlen($styled_url) > 30) {
|
if (strlen($styled_url) > 30) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue