Fomafix has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/334503 )
Change subject: Use postWithToken and formatversion=2 for action=purge
......................................................................
Use postWithToken and formatversion=2 for action=purge
Change-Id: I4fa75d50bc9f5b33320507b7b7a73bb3bdd61349
---
M client/resources/jquery.wikibase/jquery.wikibase.linkitem.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/03/334503/1
diff --git a/client/resources/jquery.wikibase/jquery.wikibase.linkitem.js
b/client/resources/jquery.wikibase/jquery.wikibase.linkitem.js
index f4ea265..9d3f2c3 100644
--- a/client/resources/jquery.wikibase/jquery.wikibase.linkitem.js
+++ b/client/resources/jquery.wikibase/jquery.wikibase.linkitem.js
@@ -571,7 +571,8 @@
// Purge this page in the background... we shouldn't confuse
the user with the newly added
// link(s) not being there:
- mwApi.post( {
+ mwApi.postWithToken( 'csrf', {
+ formatversion: 2,
action: 'purge',
titles: this.options.pageTitle
} );
--
To view, visit https://gerrit.wikimedia.org/r/334503
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4fa75d50bc9f5b33320507b7b7a73bb3bdd61349
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits