mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Merge "Use Revision::RAW when checking whether the author of a revision mentioned themselves"
This commit is contained in:
commit
cc9dfff167
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue