mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
Merge "Allow events to specify that they should notify the agent."
This commit is contained in:
commit
5852502814
|
@ -246,8 +246,9 @@ class EchoNotificationController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't notify the person who made the edit, that's a bit silly.
|
// Don't notify the person who made the edit unless the event extra says to do so, that's a bit silly.
|
||||||
if ( $event->getAgent() ) {
|
$extra = $event->getExtra();
|
||||||
|
if ( ( !isset( $extra['notifyAgent'] ) || !$extra['notifyAgent'] ) && $event->getAgent() ) {
|
||||||
unset( $subscriptions[$event->getAgent()->getId()] );
|
unset( $subscriptions[$event->getAgent()->getId()] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue