From 823b812ccec9677c188bc8171e1076cdcbbbe922 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 2 Feb 2014 10:04:31 +0100 Subject: [PATCH] Changing the bbcode conversion since that sometimes lead to missing links --- statusnet/statusnet.php | 2 +- twitter/twitter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));