]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Added function "bb_CleanPictureLinks" ro all connectors
[friendica-addons.git] / statusnet / statusnet.php
index 39aec43b284147fbe6daf8edd751bd5b0a6d7742..a159e87ad1bbeb6f415af87f38da4261ad5456df 100755 (executable)
@@ -452,6 +452,8 @@ function statusnet_shortenmsg($b, $max_char) {
        require_once("include/bbcode.php");
        require_once("include/html2plain.php");
 
+       $b['body'] = bb_CleanPictureLinks($b['body']);
+
        // Looking for the first image
        $cleaned_body = api_clean_plain_items($b['body']);
        $image = '';
@@ -502,7 +504,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));