diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 54aca484..66a1db81 100755 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -412,6 +412,7 @@ function statusnet_post_hook(&$a,&$b) { // $tmp = preg_replace( '/#\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', '#$2', $tmp); // preserve links to webpages $tmp = preg_replace( '/\[url\=(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)\](\w+.*?)\[\/url\]/i', '$2 $1', $tmp); + $tmp = preg_replace( '/\[bookmark\=(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)\](\w+.*?)\[\/bookmark\]/i', '$2 $1', $tmp); // TODO apply the shortener to the URLs in the releyed dent $msg = strip_tags(bbcode($tmp)); // quotes not working - let's try this