Fix group regexes that got missed in Nickname::DISPLAY_FMT update: fixes bug where group linking happened, but not actual delivery, when using _underscores_ in the !group_name
This commit is contained in:
parent
1d439ef5d8
commit
4883069177
@ -964,7 +964,7 @@ class Notice extends Memcached_DataObject
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
|
|
||||||
/* extract all !group */
|
/* 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),
|
strtolower($this->content),
|
||||||
$match);
|
$match);
|
||||||
if (!$count) {
|
if (!$count) {
|
||||||
|
@ -391,8 +391,10 @@ class GroupPrivateMessagePlugin extends Plugin
|
|||||||
|
|
||||||
// Look for group tags
|
// Look for group tags
|
||||||
// FIXME: won't work for remote groups
|
// 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),
|
strtolower($notice->content),
|
||||||
$match);
|
$match);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user