move mention detection before default in OStatusPlugin

This commit is contained in:
Evan Prodromou 2010-02-23 15:59:10 -05:00
parent c79c70ea2c
commit a0c255e231

View File

@ -224,7 +224,7 @@ class OStatusPlugin extends Plugin
*
*/
function onEndFindMentions($sender, $text, &$mentions)
function onStartFindMentions($sender, $text, &$mentions)
{
preg_match_all('/(?:^|\s+)@((?:\w+\.)*\w+@(?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+)/',
$text,
@ -471,7 +471,6 @@ class OStatusPlugin extends Plugin
$oprofile->unsubscribe();
}
$member = Profile::staticGet($user->id);
$act = new Activity();