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