jenkins-bot has submitted this change and it was merged. Change subject: Use "csrf" tokens instead of "edit" ones ......................................................................
Use "csrf" tokens instead of "edit" ones "edit" type tokens have been deprecated in favour of the more generic "csrf" type tokens. This has been causing warnings since: 65077ede90 See also https://www.mediawiki.org/wiki/API:Tokens Bug: T134532 Change-Id: I3ce3c1e6a40f8a21c931c77314021e2ae94e5fb7 --- M modules/ext.thanks.flowthank.js M modules/ext.thanks.mobilediff.js M modules/ext.thanks.revthank.js 3 files changed, 3 insertions(+), 3 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ext.thanks.flowthank.js b/modules/ext.thanks.flowthank.js index c1eb6a4..e6c8f45 100644 --- a/modules/ext.thanks.flowthank.js +++ b/modules/ext.thanks.flowthank.js @@ -34,7 +34,7 @@ } function sendFlowThanks( $thankLink ) { - ( new mw.Api() ).postWithToken( 'edit', { + ( new mw.Api() ).postWithToken( 'csrf', { action: 'flowthank', postid: $thankLink.closest( '.flow-post' ).attr( mw.thanks.thanked.attrName ) } ) diff --git a/modules/ext.thanks.mobilediff.js b/modules/ext.thanks.mobilediff.js index d084395..3f78e2d 100644 --- a/modules/ext.thanks.mobilediff.js +++ b/modules/ext.thanks.mobilediff.js @@ -10,7 +10,7 @@ */ function thankUser( name, revision, gender ) { var d = $.Deferred(); - ( new mw.Api() ).postWithToken( 'edit', { + ( new mw.Api() ).postWithToken( 'csrf', { action: 'thank', rev: revision, source: 'mobilediff' diff --git a/modules/ext.thanks.revthank.js b/modules/ext.thanks.revthank.js index 3bc5069..a28da6e 100644 --- a/modules/ext.thanks.revthank.js +++ b/modules/ext.thanks.revthank.js @@ -28,7 +28,7 @@ source = 'diff'; } - ( new mw.Api ).postWithToken( 'edit', { + ( new mw.Api ).postWithToken( 'csrf', { action: 'thank', rev: $thankLink.attr( 'data-revision-id' ), source: source -- To view, visit https://gerrit.wikimedia.org/r/290878 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3ce3c1e6a40f8a21c931c77314021e2ae94e5fb7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Thanks Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <[email protected]> Gerrit-Reviewer: Legoktm <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
