]> git.mxchange.org Git - friendica-addons.git/commitdiff
Changing the bbcode conversion since that sometimes lead to missing links
authorMichael Vogel <icarus@dabo.de>
Sun, 2 Feb 2014 09:04:31 +0000 (10:04 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 2 Feb 2014 09:04:31 +0000 (10:04 +0100)
statusnet/statusnet.php
twitter/twitter.php

index 39aec43b284147fbe6daf8edd751bd5b0a6d7742..5286657b4baa4845871270e949f824e0f609371f 100755 (executable)
@@ -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));
index c61e94e49ec863c414ec0e7c1d57a09dbf28154d..ef69740429b4c85a7f3d148f58aa5006376a8f81 100755 (executable)
@@ -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));