]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
authorBrion Vibber <brion@pobox.com>
Mon, 7 Feb 2011 20:20:12 +0000 (12:20 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 7 Feb 2011 20:20:12 +0000 (12:20 -0800)
classes/Notice.php
plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php

index 2d13828f1ff5d1e1a5c9a4e416ba2fe998011794..4522d1fc3889b4648afb6e8434afddfd0fbe8bd8 100644 (file)
@@ -964,7 +964,7 @@ class Notice extends Memcached_DataObject
         $groups = array();
 
         /* extract all !group */
-        $count = preg_match_all('/(?:^|\s)!([A-Za-z0-9]{1,64})/',
+        $count = preg_match_all('/(?:^|\s)!(' . Nickname::DISPLAY_FMT . ')/',
                                 strtolower($this->content),
                                 $match);
         if (!$count) {
index 6a58ec3e21d585c7608325b809eb370d02ce9087..09fd1d7bfa19cd496fa8b20802b9dc2095ddb7c2 100644 (file)
@@ -391,8 +391,10 @@ class GroupPrivateMessagePlugin extends Plugin
 
         // Look for group tags
         // FIXME: won't work for remote groups
+        // @fixme if Notice::saveNew is refactored so we can just pull its list
+        // of groups between processing and saving, make use of it
 
-        $count = preg_match_all('/(?:^|\s)!([A-Za-z0-9]{1,64})/',
+        $count = preg_match_all('/(?:^|\s)!(' . Nickname::DISPLAY_FMT . ')/',
                                 strtolower($notice->content),
                                 $match);