mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge "Support UserMerge into anonymous user"
This commit is contained in:
commit
49ec566a10
|
@ -1051,7 +1051,10 @@ class EchoHooks {
|
|||
|
||||
public static function onMergeAccountFromTo( User &$oldUser, User &$newUser ) {
|
||||
MWEchoNotifUser::newFromUser( $oldUser )->resetNotificationCount( DB_MASTER );
|
||||
MWEchoNotifUser::newFromUser( $newUser )->resetNotificationCount( DB_MASTER );
|
||||
|
||||
if ( !$newUser->isAnon() ) {
|
||||
MWEchoNotifUser::newFromUser( $newUser )->resetNotificationCount( DB_MASTER );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue