From: Michael Vogel Date: Sun, 2 Feb 2014 09:04:31 +0000 (+0100) Subject: Changing the bbcode conversion since that sometimes lead to missing links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=823b812ccec9677c188bc8171e1076cdcbbbe922;p=friendica-addons.git Changing the bbcode conversion since that sometimes lead to missing links --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 39aec43b..5286657b 100755 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -502,7 +502,7 @@ function statusnet_shortenmsg($b, $max_char) { //$body = preg_replace("/\[share(.*?)\](.*?)\[\/share\]/ism","\n\n$2\n\n",$body); // At first convert the text to html - $html = bbcode(api_clean_plain_items($body), false, false, 2, true); + $html = bbcode(api_clean_plain_items($body), false, false, 2); // Then convert it to plain text //$msg = trim($b['title']." \n\n".html2plain($html, 0, true)); diff --git a/twitter/twitter.php b/twitter/twitter.php index c61e94e4..ef697404 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -428,7 +428,7 @@ function twitter_shortenmsg($b, $shortlink = false) { //$body = preg_replace("/\[share(.*?)\](.*?)\[\/share\]/ism","\n\n$2\n\n",$body); // At first convert the text to html - $html = bbcode(api_clean_plain_items($body), false, false, 2, true); + $html = bbcode(api_clean_plain_items($body), false, false, 2); // Then convert it to plain text $msg = trim(html2plain($html, 0, true));