mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Read revision from master when determining notifications to send
Bug: T93333 Change-Id: Ie41184f522f32835d278f69bc785ec71fddecc03
This commit is contained in:
parent
d833b09532
commit
80ddd5549b
|
@ -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' ) );
|
||||
|
|
Loading…
Reference in a new issue