From fbb38837b04b4bea59548062bc13fffc78227cbc Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 11 Mar 2018 12:16:17 +0000 Subject: [PATCH] Shortener deactivated, due to Diaspora problems --- src/Content/Text/BBCode.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index dcf1f44817..744ddd46ba 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -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 = '%s';