diff options
Diffstat (limited to 'Echo/modules/api/mw.echo.api.LocalAPIHandler.js')
-rw-r--r-- | Echo/modules/api/mw.echo.api.LocalAPIHandler.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Echo/modules/api/mw.echo.api.LocalAPIHandler.js b/Echo/modules/api/mw.echo.api.LocalAPIHandler.js index da86b1fe..c00ce740 100644 --- a/Echo/modules/api/mw.echo.api.LocalAPIHandler.js +++ b/Echo/modules/api/mw.echo.api.LocalAPIHandler.js @@ -1,4 +1,4 @@ -( function ( mw, $ ) { +( function () { /** * Notification API handler * @@ -40,7 +40,8 @@ mw.echo.api.LocalAPIHandler.prototype.updateSeenTime = function ( type ) { type = Array.isArray( type ) ? type : [ type ]; - return this.api.postWithToken( 'csrf', { + // This is a GET request, not a POST request, for multi-DC support (see T222851) + return this.api.get( { action: 'echomarkseen', type: type.length === 1 ? type[ 0 ] : 'all', timestampFormat: 'ISO_8601' @@ -134,4 +135,4 @@ notcrosswikisummary: 1 } ); }; -}( mediaWiki, jQuery ) ); +}() ); |