mirror of
https://github.com/friendica/friendica
synced 2025-02-22 13:18:13 +00:00
fix images with links going to diaspora, the D* markdown processor changed and these are no longer working.
This commit is contained in:
parent
358b2a46f5
commit
977a49ad93
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
'' . "\n" . '[' . t('link') . '](' . '$1' . ')', $Text);
|
||||
|
||||
$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '', $Text);
|
||||
|
||||
// Perform MAIL Search
|
||||
|
|
Loading…
Add table
Reference in a new issue