mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
Allow showing non-free images when using MediaWiki API
We used to query the MediaWiki API to only return non-free images. This patch allows us to query the API for images with any license. The RESTBase end point is already returning images with any license. Bug: T158632 Change-Id: I9ac60b6f74a7f7eb2cb160ee522c2c3a26dd0858
This commit is contained in:
parent
41fcbcc1da
commit
b40a24c15c
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map
vendored
BIN
resources/dist/index.js.map
vendored
Binary file not shown.
|
@ -33,6 +33,7 @@ function createMediaWikiApiGateway( api, config ) {
|
|||
|
||||
piprop: 'thumbnail',
|
||||
pithumbsize: config.THUMBNAIL_SIZE,
|
||||
pilicense: 'any',
|
||||
rvprop: 'timestamp',
|
||||
inprop: 'url',
|
||||
titles: title,
|
||||
|
|
|
@ -64,6 +64,7 @@ QUnit.test( 'MediaWiki API gateway is called with correct arguments', function (
|
|||
explaintext: true,
|
||||
piprop: 'thumbnail',
|
||||
pithumbsize: DEFAULT_CONSTANTS.THUMBNAIL_SIZE,
|
||||
pilicense: 'any',
|
||||
rvprop: 'timestamp',
|
||||
inprop: 'url',
|
||||
titles: 'Test Title',
|
||||
|
|
Loading…
Reference in a new issue