aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-01 02:17:36 -0700
committerFriendika <info@friendika.com>2011-11-01 02:17:36 -0700
commit05eca449c82c9b574321b71864406bab3f926442 (patch)
tree10d86d0bb3c65c5c39408b49d102614b219ddffd /include/bb2diaspora.php
parentf4518c646a588177e93a05363f07b61dce3fb563 (diff)
downloadvolse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.tar.gz
volse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.tar.bz2
volse-hubzilla-05eca449c82c9b574321b71864406bab3f926442.zip
bookmarks not getting translated to D*
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r--include/bb2diaspora.php2
1 files changed, 2 insertions, 0 deletions
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);