Don't attempt to load 'Category:'-values as images directly

This commit is contained in:
Pieter Vander Vennet 2024-05-28 14:29:02 +02:00
parent c5b4498b2b
commit 3d4f18ca04
2 changed files with 8 additions and 7 deletions

View file

@ -17,13 +17,15 @@ export default class AllImageProviders {
Mapillary.singleton,
WikidataImageProvider.singleton,
WikimediaImageProvider.singleton,
// The 'genericImageProvider' is a fallback that scans various other tags for tags, unless the URL starts with one of the given prefixes
new GenericImageProvider(
[].concat(
[
...Imgur.defaultValuePrefix,
...WikimediaImageProvider.commonsPrefixes,
...Mapillary.valuePrefixes,
...AllImageProviders.dontLoadFromPrefixes
)
...AllImageProviders.dontLoadFromPrefixes,
"Category:"
]
),
]
public static apiUrls: string[] = [].concat(