From 1814e4ee221e0f0121ad8998c70ff16ca58317ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 19 Jul 2022 21:40:22 +0200 Subject: [PATCH] VE integration: Remove "unrecoverable" errors Bug: T307330 Depends-On: I9680cc416da5b27881aeb3502f506dcb5d4bb71f Change-Id: I80a0822b048d88c71f722e012bb250b53dce6155 --- .../ve.init.mw.SpamBlacklistSaveErrorHandler.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js b/modules/ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js index 0ce99036..e1409d74 100644 --- a/modules/ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js +++ b/modules/ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js @@ -14,11 +14,8 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () { }; ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) { - // Handle spam blacklist error from Extension:SpamBlacklist - target.showSaveError( - target.extractErrorMessages( data ), - false // prevents reapply - ); + // Handle errors from Extension:SpamBlacklist + target.showSaveError( target.extractErrorMessages( data ) ); // Emit event for tracking. TODO: This is a bad design target.emit( 'saveErrorSpamBlacklist' ); };