Allow mentioning bare domains with OStatus
This commit is contained in:
parent
2edf535ecd
commit
0aa759fab7
|
@ -292,7 +292,7 @@ class OStatusPlugin extends Plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
// Profile matches: @example.com/mublog/user
|
// Profile matches: @example.com/mublog/user
|
||||||
if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+(?:/\w+)+)!',
|
if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+(?:/\w+)*)!',
|
||||||
$text,
|
$text,
|
||||||
$wmatches,
|
$wmatches,
|
||||||
PREG_OFFSET_CAPTURE)) {
|
PREG_OFFSET_CAPTURE)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user