Merge "Use Revision::RAW when checking whether the author of a revision mentioned themselves"

This commit is contained in:
jenkins-bot 2016-05-26 17:09:17 +00:00 committed by Gerrit Code Review
commit cc9dfff167

View file

@ -156,7 +156,7 @@ abstract class EchoDiscussionParser {
continue;
}
// 2. the user mentions themselves
if ( $user->getId() == $revision->getUser() ) {
if ( $user->getId() == $revision->getUser( Revision::RAW ) ) {
$stats->increment( 'echo.event.mention.error.sameUser' );
continue;
}