forked from MapComplete/MapComplete
Images: don't attempt to load images from google photo's, it doesn't work anyway
This commit is contained in:
parent
5d9a617b3e
commit
4356af3510
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,8 @@ import { WikidataImageProvider } from "./WikidataImageProvider"
|
|||
* A generic 'from the interwebz' image picker, without attribution
|
||||
*/
|
||||
export default class AllImageProviders {
|
||||
private static dontLoadFromPrefixes = ["https://photos.app.goo.gl/"]
|
||||
|
||||
public static ImageAttributionSource: ImageProvider[] = [
|
||||
Imgur.singleton,
|
||||
Mapillary.singleton,
|
||||
|
@ -19,7 +21,8 @@ export default class AllImageProviders {
|
|||
[].concat(
|
||||
...Imgur.defaultValuePrefix,
|
||||
...WikimediaImageProvider.commonsPrefixes,
|
||||
...Mapillary.valuePrefixes
|
||||
...Mapillary.valuePrefixes,
|
||||
...AllImageProviders.dontLoadFromPrefixes
|
||||
)
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue