]> git.mxchange.org Git - friendica.git/commitdiff
facebook parses out punctuation on the left of links but not on right
authorFriendika <info@friendika.com>
Wed, 16 Mar 2011 00:47:49 +0000 (17:47 -0700)
committerFriendika <info@friendika.com>
Wed, 16 Mar 2011 00:47:49 +0000 (17:47 -0700)
addon/facebook/facebook.php

index edfc5a374cc354b4ba7e7af18ea7a1b01ea72552..e1ea6673be807d3d3a1be281f6aa6e790d8ce17f 100644 (file)
@@ -225,7 +225,7 @@ function facebook_post_hook(&$a,&$b) {
 
                                // make links readable before we strip the code
 
-                               $msg = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/is",'$2 [$1]',$msg);
+                               $msg = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/is",'$2 $1',$msg);
 
                                $msg = preg_replace("/\[img\](.+?)\[\/img\]/is", t('Image: ') . '$1',$msg);