Skip to content

Commit

Permalink
Notifications should not be sent by default during the import process
Browse files Browse the repository at this point in the history
Change-Id: Ibb54a9fb914f2ca7cf86765ef1864215b1654f31
  • Loading branch information
ebernhardson committed Mar 26, 2015
1 parent 60d76d9 commit bbbd01d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/Data/Listener/NotificationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public function onAfterInsert( $object, array $row, array $metadata ) {
return;
}

if ( isset( $metadata['imported'] ) && $metadata['imported'] ) {
// Don't send any notifications by default for imports
return;
}

switch( $row['rev_change_type'] ) {
// Actually new-topic @todo rename
case 'new-post':
Expand Down

0 comments on commit bbbd01d

Please sign in to comment.