]> git.mxchange.org Git - friendica-addons.git/commitdiff
SN/T: typo
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 May 2012 11:51:48 +0000 (13:51 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 1 May 2012 11:51:48 +0000 (13:51 +0200)
statusnet/statusnet.php
twitter/twitter.php

index 5f9800672ff3955a453a66b24697bde375ba51d5..469b3ab89e9d4ee44c9884be6b7407ee1deed24d 100755 (executable)
@@ -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);
index 1aed0148f2f736c759de6216d14449986ea8d478..978cc039f506a9b9f96baf5957c13d6b2b80ccda 100755 (executable)
@@ -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);