fix images with links going to diaspora, the D* markdown processor changed and these are no longer working.

pull/25/merge
friendica 2012-01-08 00:57:36 -08:00
rodzic 358b2a46f5
commit 977a49ad93
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -101,6 +101,9 @@ function bb2diaspora($Text,$preserve_nl = false) {
$Text = preg_replace("/\#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '[#$2]($1)', $Text);
$Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '[$2]($1)', $Text);
$Text = preg_replace("/\[url\=([$URLSearchString]*)\]\[img\](.*?)\[\/img\]\[\/url\]/ism",
'![' . t('image/photo') . '](' . '$2' . ')' . "\n" . '[' . t('link') . '](' . '$1' . ')', $Text);
$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '![' . t('image/photo') . '](' . '$1' . ')', $Text);
// Perform MAIL Search