From 4ac8f1b48b0d83405530642e2f5bd48b8b13f98c Mon Sep 17 00:00:00 2001 From: S Page Date: Fri, 26 Jun 2015 00:07:06 -0700 Subject: [PATCH] Use actual booleans in API request Popups' API query request specifies the string 'true' as the value for some boolean request parameters, but that's functionally identical to specifying boolean true -- both get encoded as param=true in the HTTP request. Change-Id: Icc5f4b8ef6faaffe4a23c964f8cd8c2582d28381 --- resources/ext.popups.renderer.article.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/ext.popups.renderer.article.js b/resources/ext.popups.renderer.article.js index 2c6ec5590..e29fba885 100644 --- a/resources/ext.popups.renderer.article.js +++ b/resources/ext.popups.renderer.article.js @@ -50,12 +50,12 @@ mw.popups.render.currentRequest = mw.popups.api.get( { action: 'query', prop: 'extracts|pageimages|revisions|info', - redirects: 'true', - exintro: 'true', + redirects: true, + exintro: true, exsentences: 2, // there is an added geometric limit on .mwe-popups-extract // so that text does not overflow from the card - explaintext: 'true', + explaintext: true, piprop: 'thumbnail', pithumbsize: 300, rvprop: 'timestamp',