summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2020-10-02 13:57:00 -0400
committerBrian Evans <grknight@gentoo.org>2020-10-02 13:57:00 -0400
commitab2071c71446a71888e4c9762cdce102bf9e29a3 (patch)
tree9ce07fbfd979a5898f21239c8f8f5b3d3cbdfc21 /Echo/modules/api/mw.echo.api.LocalAPIHandler.js
parentAdd PluggableAuth extension for OpenID Connect (diff)
downloadextensions-ab2071c71446a71888e4c9762cdce102bf9e29a3.tar.gz
extensions-ab2071c71446a71888e4c9762cdce102bf9e29a3.tar.bz2
extensions-ab2071c71446a71888e4c9762cdce102bf9e29a3.zip
Update Echo to 1.35
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'Echo/modules/api/mw.echo.api.LocalAPIHandler.js')
-rw-r--r--Echo/modules/api/mw.echo.api.LocalAPIHandler.js7
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 ) );
+}() );