Don't include the logged in user in local suggestions

Bug: T267680
Change-Id: I1b2d185de390b73e1b389fc4139735069e7a65dc
This commit is contained in:
Ed Sanders 2020-11-16 22:48:21 +00:00
parent 7d349808c2
commit a87d60228f

View file

@ -30,7 +30,7 @@ function MWUsernameCompletionAction( surface ) {
this.surface.authors.forEach( function ( user ) {
if ( mw.util.isIPAddress( user ) ) {
action.ipUsers.push( user );
} else {
} else if ( user !== mw.user.getName() ) {
action.localUsers.push( user );
}
} );