Shortener deactivated, due to Diaspora problems

2022.09-rc
Michael 2018-03-11 12:16:17 +00:00
rodzic 229fb0439e
commit fbb38837b0
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -863,9 +863,10 @@ class BBCode
$scheme = $parts['scheme'] . '://';
$styled_url = str_replace($scheme, '', $url);
if (strlen($styled_url) > 30) {
$styled_url = substr($styled_url, 0, 30) . "";
}
// Currently deactivated, due to preview problems inside of Diaspora
// if (strlen($styled_url) > 30) {
// $styled_url = substr($styled_url, 0, 30) . "…";
// }
$html = '<a href="%s" target="_blank">%s</a>';