From: Stephen Paul Weber Date: Wed, 28 Oct 2015 01:24:42 +0000 (+0000) Subject: Allow mentioning bare domains with OStatus X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0aa759fab75eb8a420c28cbae85e310ff7398bb4;p=quix0rs-gnu-social.git Allow mentioning bare domains with OStatus --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 356044cbe9..1fe6e54fa6 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -292,7 +292,7 @@ class OStatusPlugin extends Plugin } // 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, $wmatches, PREG_OFFSET_CAPTURE)) {