mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
Basic forum support for Diaspora
This commit is contained in:
parent
5cae43c8c7
commit
9cbc4a7355
2 changed files with 4 additions and 2 deletions
|
@ -997,8 +997,9 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $simplehtml = fa
|
|||
if ((!$tryoembed || $simplehtml) && !in_array($simplehtml, [3, 7])) {
|
||||
$Text = preg_replace("/([#@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$1$3', $Text);
|
||||
} elseif ($simplehtml == 3) {
|
||||
// The ! is converted to @ since Diaspora only understands the @
|
||||
$Text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
||||
'$1<a href="$2">$3</a>',
|
||||
'@<a href="$2">$3</a>',
|
||||
$Text);
|
||||
} elseif ($simplehtml == 7) {
|
||||
$Text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue