Read revision from master when determining notifications to send

Bug: T93333
Change-Id: Ie41184f522f32835d278f69bc785ec71fddecc03
This commit is contained in:
Erik Bernhardson 2015-03-20 16:18:46 -07:00 committed by Timo Tijhof
parent d833b09532
commit 80ddd5549b

View file

@ -216,7 +216,7 @@ class EchoHooks {
if ( !$user->getOption( 'enotifminoredits' ) ) {
$extra = $event->getExtra();
if ( !empty( $extra['revid'] ) ) {
$rev = Revision::newFromID( $extra['revid'] );
$rev = Revision::newFromID( $extra['revid'], Revision::READ_LATEST );
if ( $rev->isMinor() ) {
$notifyTypes = array_diff( $notifyTypes, array( 'email' ) );