X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=statusnet%2Fstatusnet.php;h=469b3ab89e9d4ee44c9884be6b7407ee1deed24d;hb=949fb2f48b9b34c510e4f30a6838651a6d33682e;hp=c4100e88e509b667a16db8274ac75a5905010770;hpb=3acd957c7ed1659018a2846223de788053eea884;p=friendica-addons.git diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index c4100e88..469b3ab8 100755 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -2,7 +2,7 @@ /** * Name: StatusNet Connector * Description: Relay public postings to a connected StatusNet account - * Version: 1.0.4 + * Version: 1.0.5 * Author: Tobias Diekershoff */ @@ -435,9 +435,9 @@ function statusnet_post_hook(&$a,&$b) { // shorten all the links in a 200000 character long essay. if (! $b['title']=='') { $tmp = $b['title'] . ' : '. $b['body']; - $tmp = substr($tmp, 0, 4*$max_char); +// $tmp = substr($tmp, 0, 4*$max_char); } else { - $tmp = substr($b['body'], 0, 3*$max_char); + $tmp = $b['body']; // substr($b['body'], 0, 3*$max_char); } // if [url=bla][img]blub.png[/img][/url] get blub.png $tmp = preg_replace( '/\[url\=(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)\]\[img\](\\w+.*?)\\[\\/img\]\\[\\/url\]/i', '$2', $tmp);