Added support for internal Diaspora links to accounts
This commit is contained in:
parent
0c553150ea
commit
1905242a16
1 changed files with 7 additions and 0 deletions
|
@ -1380,6 +1380,13 @@ class BBCode extends BaseObject
|
||||||
}, $text
|
}, $text
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$text = preg_replace_callback(
|
||||||
|
"&\[url=/people\?q\=(.*)\](.*)\[\/url\]&Usi",
|
||||||
|
function ($match) {
|
||||||
|
return "[url=" . System::baseUrl() . "/search?search=%40" . $match[1] . "]" . $match[2] . "[/url]";
|
||||||
|
}, $text
|
||||||
|
);
|
||||||
|
|
||||||
// Server independent link to posts and comments
|
// Server independent link to posts and comments
|
||||||
// See issue: https://github.com/diaspora/diaspora_federation/issues/75
|
// See issue: https://github.com/diaspora/diaspora_federation/issues/75
|
||||||
$expression = "=diaspora://.*?/post/([0-9A-Za-z\-_@.:]{15,254}[0-9A-Za-z])=ism";
|
$expression = "=diaspora://.*?/post/([0-9A-Za-z\-_@.:]{15,254}[0-9A-Za-z])=ism";
|
||||||
|
|
Loading…
Reference in a new issue