diff --git a/includes/Data/Listener/NotificationListener.php b/includes/Data/Listener/NotificationListener.php index 4cbda410c8..6c266d1299 100644 --- a/includes/Data/Listener/NotificationListener.php +++ b/includes/Data/Listener/NotificationListener.php @@ -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':