bug #263, strip out hashtag links even though this loses information. This should be configurable.
This commit is contained in:
parent
6803d8344c
commit
ca86156d9b
2 changed files with 6 additions and 0 deletions
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue