diff options
author | jeroenpraat <jeroenpraat@xs4all.nl> | 2014-06-05 14:00:05 +0000 |
---|---|---|
committer | jeroenpraat <jeroenpraat@xs4all.nl> | 2014-06-05 14:00:05 +0000 |
commit | 6ccf6455c4691ca2e90403ff9fbaa21b86512190 (patch) | |
tree | d997ab65cffdf4136e6b56c3297dd028cfe9b2c1 /include/bb2diaspora.php | |
parent | d9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2 (diff) | |
parent | 48f856e84cb117b6224ae7a1e0cac30070f1af24 (diff) | |
download | volse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.tar.gz volse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.tar.bz2 volse-hubzilla-6ccf6455c4691ca2e90403ff9fbaa21b86512190.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r-- | include/bb2diaspora.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 8d3089a29..f9ecc564f 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -281,6 +281,14 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) { $Text = preg_replace("/\[img\](.*?)\[\/img\]/", '![' . t('image/photo') . '](' . '$1' . ')', $Text); $Text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/", '![' . t('image/photo') . '](' . '$2' . ')', $Text); + $Text = preg_replace("/\[zrl\]([$URLSearchString]*)\[\/zrl\]/ism", '[$1]($1)', $Text); + $Text = preg_replace("/\#\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '[#$2]($1)', $Text); + $Text = preg_replace("/\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '[$2]($1)', $Text); + + + $Text = preg_replace("/\[zmg\](.*?)\[\/zmg\]/", '![' . t('image/photo') . '](' . '$1' . ')', $Text); + $Text = preg_replace("/\[zmg\=(.*?)\](.*?)\[\/zmg\]/", '![' . t('image/photo') . '](' . '$2' . ')', $Text); + // Perform MAIL Search $Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text); $Text = preg_replace("/\[mail\=([$MAILSearchString]*)\](.*?)\[\/mail\]/", '[$2](mailto:$1)', $Text); |