mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Merge "Remove unnecessary contentType: 'multipart/form-data'
from an API query"
This commit is contained in:
commit
d77353d93e
|
@ -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', '' );
|
||||
|
|
Loading…
Reference in a new issue