Diaspora: Widen the magic link regular expression
This commit is contained in:
parent
ca86a9e1d6
commit
eb714f0487
|
@ -1319,7 +1319,7 @@ class BBCode extends BaseObject
|
|||
|
||||
// Handle Diaspora posts
|
||||
$text = preg_replace_callback(
|
||||
"&\[url=/posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
|
||||
"&\[url=/?posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
|
||||
function ($match) {
|
||||
return "[url=" . System::baseUrl() . "/display/" . $match[1] . "]" . $match[2] . "[/url]";
|
||||
}, $text
|
||||
|
|
|
@ -1200,7 +1200,7 @@ class Diaspora
|
|||
);
|
||||
|
||||
preg_replace_callback(
|
||||
"&\[url=/posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
|
||||
"&\[url=/?posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
|
||||
function ($match) use ($item) {
|
||||
self::fetchGuidSub($match, $item);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue