From 05eca449c82c9b574321b71864406bab3f926442 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 1 Nov 2011 02:17:36 -0700 Subject: bookmarks not getting translated to D* --- include/bb2diaspora.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/bb2diaspora.php') diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index d5ce6a7d9..0721d27f6 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -87,6 +87,8 @@ function bb2diaspora($Text,$preserve_nl = false) { // [img]pathtoimage[/img] + $Text = preg_replace("/\[bookmark\]([$URLSearchString]*)\[\/bookmark\]/ism", '[$1]($1)', $Text); + $Text = preg_replace("/\[bookmark\=([$URLSearchString]*)\](.*?)\[\/bookmark\]/ism", '[$2]($1)', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/ism", '[$1]($1)', $Text); $Text = preg_replace("/\#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '[#$2]($1)', $Text); -- cgit v1.2.3