Merge "Remove unnecessary contentType: 'multipart/form-data' from an API query"

This commit is contained in:
jenkins-bot 2021-08-19 16:32:08 +00:00 committed by Gerrit Code Review
commit d77353d93e

View file

@ -271,8 +271,8 @@ function initTopicSubscriptions( $container ) {
page: title,
commentname: commentName,
subscribe: !isSubscribed
}, { contentType: 'multipart/form-data' } ).then( function ( response2 ) {
return OO.getProp( response2, 'discussiontoolssubscribe' ) || {};
} ).then( function ( response ) {
return OO.getProp( response, 'discussiontoolssubscribe' ) || {};
} ).then( function ( result ) {
if ( result.subscribe ) {
element.setAttribute( 'data-mw-subscribed', '' );