mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Check supposed revision being reverted is on the same page
Bug: 57474 Change-Id: Idec054930dd20a01ec9d5132cce25378914629fc
This commit is contained in:
parent
b487bb5c86
commit
6ee8570c80
|
@ -462,7 +462,7 @@ class EchoHooks {
|
|||
$undidRevId = $wgRequest->getVal( 'wpUndidRevision' );
|
||||
if ( $undidRevId ) {
|
||||
$undidRevision = Revision::newFromId( $undidRevId );
|
||||
if ( $undidRevision ) {
|
||||
if ( $undidRevision && $undidRevision->getTitle()->equals( $title ) ) {
|
||||
$victimId = $undidRevision->getUser();
|
||||
if ( $victimId ) { // No notifications for anonymous users
|
||||
EchoEvent::create( array(
|
||||
|
|
Loading…
Reference in a new issue