Images: don't attempt to load images from google photo's, it doesn't work anyway

This commit is contained in:
Pieter Vander Vennet 2024-02-21 00:13:11 +01:00
parent 5d9a617b3e
commit 4356af3510

View file

@ -10,6 +10,8 @@ import { WikidataImageProvider } from "./WikidataImageProvider"
* A generic 'from the interwebz' image picker, without attribution * A generic 'from the interwebz' image picker, without attribution
*/ */
export default class AllImageProviders { export default class AllImageProviders {
private static dontLoadFromPrefixes = ["https://photos.app.goo.gl/"]
public static ImageAttributionSource: ImageProvider[] = [ public static ImageAttributionSource: ImageProvider[] = [
Imgur.singleton, Imgur.singleton,
Mapillary.singleton, Mapillary.singleton,
@ -19,7 +21,8 @@ export default class AllImageProviders {
[].concat( [].concat(
...Imgur.defaultValuePrefix, ...Imgur.defaultValuePrefix,
...WikimediaImageProvider.commonsPrefixes, ...WikimediaImageProvider.commonsPrefixes,
...Mapillary.valuePrefixes ...Mapillary.valuePrefixes,
...AllImageProviders.dontLoadFromPrefixes
) )
), ),
] ]