From: Tobias Diekershoff Date: Tue, 1 May 2012 11:51:48 +0000 (+0200) Subject: SN/T: typo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=949fb2f48b9b34c510e4f30a6838651a6d33682e;p=friendica-addons.git SN/T: typo --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 5f980067..469b3ab8 100755 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -437,7 +437,7 @@ function statusnet_post_hook(&$a,&$b) { $tmp = $b['title'] . ' : '. $b['body']; // $tmp = substr($tmp, 0, 4*$max_char); } else { - $tmp = $b['body'] // 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); diff --git a/twitter/twitter.php b/twitter/twitter.php index 1aed0148..978cc039 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -303,7 +303,7 @@ function twitter_post_hook(&$a,&$b) { $tmp = $b['title'] . ' : '. $b['body']; // $tmp = substr($tmp, 0, 4*$max_char); } else { - $tmp = $b['body'] // 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);