Skip to content

Commit

Permalink
Merge "Notifications should not be sent by default during the import …
Browse files Browse the repository at this point in the history
…process"
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Mar 28, 2015
2 parents 74fea0b + bbbd01d commit 33065ae
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 33065ae

Please sign in to comment.