]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow mentioning bare domains with OStatus
authorStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:24:42 +0000 (01:24 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:24:42 +0000 (01:24 +0000)
plugins/OStatus/OStatusPlugin.php

index 356044cbe9b8810339668d7f27ae2f0c2b282501..1fe6e54fa66520adb5092772660c1a30d1bde015 100644 (file)
@@ -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)) {