diff options
-rw-r--r-- | includes/mail/EmailNotification.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index 302722139d9f..f9f1461e84b4 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -146,8 +146,11 @@ class EmailNotification { // update wl_notificationtimestamp for watchers $watchers = []; - if ( $config->get( MainConfigNames::EnotifWatchlist ) || - $config->get( MainConfigNames::ShowUpdatedMarker ) + if ( + ( + $config->get( MainConfigNames::EnotifWatchlist ) || + $config->get( MainConfigNames::ShowUpdatedMarker ) + ) && !$mwServices->getUserFactory()->newFromAuthority( $editor )->isBot() ) { $watchers = $mwServices->getWatchedItemStore()->updateNotificationTimestamp( $editor->getUser(), |