mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +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.
|
||||
if ( $event->getAgent() ) {
|
||||
// Don't notify the person who made the edit unless the event extra says to do so, that's a bit silly.
|
||||
$extra = $event->getExtra();
|
||||
if ( ( !isset( $extra['notifyAgent'] ) || !$extra['notifyAgent'] ) && $event->getAgent() ) {
|
||||
unset( $subscriptions[$event->getAgent()->getId()] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue