From ffa2bb003435480fcbd35f05d132bad38c38f789 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 8 Mar 2026 00:32:39 +0000 Subject: [PATCH] mediawiki: QuickInstantCommons set UA and Via404=False WMF are now restricting non standard sizes. Make osm.wiki usage clear and use official API --- .../templates/default/mw-ext-QuickInstantCommons.inc.php.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb index 06151ed58..4a5c26f7a 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb @@ -11,8 +11,9 @@ $wgForeignFileRepos[] = [ 'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb', 'fetchDescription' => true, 'descriptionCacheExpiry' => 60*60*24*30, - 'transformVia404' => true, + 'transformVia404' => false, 'abbrvThreshold' => 160, 'apiMetadataExpiry' => 60*60*24*30, 'disabledMediaHandlers' => [TiffHandler::class] ]; +$wgQuickInstantCommonsUserAgentInfo = "osm.wiki/1.0 (QuickInstantCommons)"; -- 2.39.5