]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #115 from tobiasd/snt_newstyle_share
authortobiasd <tobias.diekershoff@gmx.net>
Fri, 12 Apr 2013 16:41:07 +0000 (09:41 -0700)
committertobiasd <tobias.diekershoff@gmx.net>
Fri, 12 Apr 2013 16:41:07 +0000 (09:41 -0700)
use simple share for SN and T

statusnet/statusnet.php
twitter/twitter.php

index 76ba18fb703e94fcee224b16fb1c6122a41c0ddd..f2f8a5f7a6b386a3072a4a199caaad23ec5061af 100755 (executable)
@@ -656,7 +656,7 @@ function statusnet_post_hook(&$a,&$b) {
                        // ok, all the links we want to send out are save, now strip 
                        // away the remaining bbcode
                        //$msg = strip_tags(bbcode($tmp, false, false));
-                       $msg = bbcode($tmp, false, false);
+                       $msg = bbcode($tmp, false, false, true);
                        $msg = str_replace(array('<br>','<br />'),"\n",$msg);
                        $msg = strip_tags($msg);
 
index 43009709e89619e623d110ee5b79d020cd840f6a..c07d3b58cb3986169b39c4b606f71292e3df2465 100755 (executable)
@@ -512,7 +512,7 @@ function twitter_post_hook(&$a,&$b) {
                        // ok, all the links we want to send out are save, now strip 
                        // away the remaining bbcode
                        //$msg = strip_tags(bbcode($tmp, false, false));
-                       $msg = bbcode($tmp, false, false);
+                       $msg = bbcode($tmp, false, false, true);
                        $msg = str_replace(array('<br>','<br />'),"\n",$msg);
                        $msg = strip_tags($msg);