From 274904c95a6ffd06beffed24ed4fa2a4caf2833a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 7 Oct 2024 21:50:44 +0200 Subject: [PATCH] Fix: fallback to 'CC-BY-SA' as license --- src/ImageUploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageUploader.ts b/src/ImageUploader.ts index 9f5876b..9e94625 100644 --- a/src/ImageUploader.ts +++ b/src/ImageUploader.ts @@ -73,7 +73,7 @@ export default class ImageUploader { const path = this._globalConfig.cacheDir + "/image_" + image.image console.log("Fetching image:", imageData.assets.sd.href) await Utils.DownloadBlob(imageData.assets.sd.href, path) - const mediaId = await this._poster.uploadImage(path, "Image taken by " + authorName + ", available under " + imageData.properties["geovisio:license"] + ". It is made with the thematic map " + image.changeset.properties.theme + " in changeset https://openstreetmap.org/changeset/" + image.changeset.id) + const mediaId = await this._poster.uploadImage(path, "Image taken by " + authorName + ", available under " + (imageData.properties["geovisio:license"] ?? "CC-BY-SA")+ ". It is made with the thematic map " + image.changeset.properties.theme + " in changeset https://openstreetmap.org/changeset/" + image.changeset.id) this._authors.push(authorName) return mediaId