diff options
author | thiemowmde <thiemo.kreuz@wikimedia.de> | 2022-11-02 11:58:21 +0100 |
---|---|---|
committer | thiemowmde <thiemo.kreuz@wikimedia.de> | 2022-11-02 11:58:21 +0100 |
commit | f2ae178e494f90d191e8cc061641c59d32641bd3 (patch) | |
tree | 7424f73bbe29efe1d82e233ef18838908bc5bbdf /resources/src/mediawiki.api/parse.js | |
parent | 8d785f979d6af0850ff381b2e33e1624906e73a6 (diff) | |
download | mediawikicore-f2ae178e494f90d191e8cc061641c59d32641bd3.tar.gz mediawikicore-f2ae178e494f90d191e8cc061641c59d32641bd3.zip |
mediawiki.api: Remove unnecessary JSON from parse API response
This little method doesn't allow to access anything but the resulting
text content. There is no need to query anything else.
Change-Id: Iff239869ac831d87334adfcf89c78b27f762688e
Diffstat (limited to 'resources/src/mediawiki.api/parse.js')
-rw-r--r-- | resources/src/mediawiki.api/parse.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/src/mediawiki.api/parse.js b/resources/src/mediawiki.api/parse.js index 447b9365d44a..ca25accaaafb 100644 --- a/resources/src/mediawiki.api/parse.js +++ b/resources/src/mediawiki.api/parse.js @@ -20,6 +20,8 @@ config = $.extend( { formatversion: 2, action: 'parse', + // Minimize the JSON we get back, there is no way to access anything else anyway + prop: 'text', contentmodel: 'wikitext' }, additionalParams ); |