Fix: also show wikimedia images if the 'http'-url was used

This commit is contained in:
Pieter Vander Vennet 2025-09-06 23:34:12 +02:00
parent 8d678008b7
commit 35c4222466

View file

@ -15,7 +15,9 @@ export class WikimediaImageProvider extends ImageProvider {
"https://commons.wikimedia.org/wiki/",
"https://upload.wikimedia.org",
]
public static readonly commonsPrefixes = [...WikimediaImageProvider.apiUrls, "File:"]
public static readonly commonsPrefixes = [...WikimediaImageProvider.apiUrls,
"http://commons.wikimedia.org/wiki/",
"http://upload.wikimedia.org", "File:"]
private readonly commons_key = "wikimedia_commons"
public readonly defaultKeyPrefixes = [this.commons_key, "image"]
public readonly name = "Wikimedia"