]> git.mxchange.org Git - friendica-addons.git/commitdiff
bug #263, strip out hashtag links even though this loses information. This should...
authorfriendica <info@friendica.com>
Mon, 6 Feb 2012 00:31:48 +0000 (16:31 -0800)
committerfriendica <info@friendica.com>
Mon, 6 Feb 2012 00:31:48 +0000 (16:31 -0800)
facebook.tgz
facebook/facebook.php

index 484d8eae38c029a6f42a010a83725f37371c4674..e049d2b8cd3dff95906efe755651a4a84142c9e0 100755 (executable)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 3cf5ee8d6a74380eee584c0e9e5755a2e5353afc..f155d39728e6303e2859016ee4cff7196608eb28 100755 (executable)
@@ -636,6 +636,12 @@ function facebook_post_hook(&$a,&$b) {
                                        }
                                }
 
+                               // strip tag links to avoid link clutter, this really should be 
+                               // configurable because we're losing information
+
+                               $msg = preg_replace("/\#\[url=(.*?)\](.*?)\[\/url\]/is",'#$2',$msg);
+
+                               // provide the link separately for normal links
                                $msg = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/is",'$2 $1',$msg);
 
                                if(preg_match("/\[img\](.*?)\[\/img\]/is",$msg,$matches))