bug #263, strip out hashtag links even though this loses information. This should be configurable.

This commit is contained in:
friendica 2012-02-05 16:31:48 -08:00
parent 6803d8344c
commit ca86156d9b
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -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))