Merge "Allow events to specify that they should notify the agent."

This commit is contained in:
Kaldari 2013-02-01 00:27:20 +00:00 committed by Gerrit Code Review
commit 5852502814

View file

@ -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()] );
} }