Jdlrobson has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/351549 )
Change subject: Use csrf token for watching ...................................................................... Use csrf token for watching Using watchtoken will fail on Tilman's Firefox device. Use of action tokens seems to be deprecated See https://www.mediawiki.org/wiki/API:Tokens_(action) Change-Id: I190f8f9b60e46fd8494459bd84d429ce3685aeb9 --- M resources/mobile.watchstar/WatchstarGateway.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/49/351549/1 diff --git a/resources/mobile.watchstar/WatchstarGateway.js b/resources/mobile.watchstar/WatchstarGateway.js index 0177ce2..45fc55c 100644 --- a/resources/mobile.watchstar/WatchstarGateway.js +++ b/resources/mobile.watchstar/WatchstarGateway.js @@ -103,7 +103,7 @@ if ( this.isWatchedPage( page ) ) { data.unwatch = true; } - return this.api.postWithToken( 'watch', data ).done( function () { + return this.api.postWithToken( 'csrf', data ).done( function () { var newStatus = !self.isWatchedPage( page ); self.setWatchedPage( page, newStatus ); M.emit( 'watched', page, newStatus ); -- To view, visit https://gerrit.wikimedia.org/r/351549 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I190f8f9b60e46fd8494459bd84d429ce3685aeb9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits