forked from MapComplete/MastodonBot
Fix: fallback to 'CC-BY-SA' as license
This commit is contained in:
parent
a9779163b8
commit
274904c95a
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export default class ImageUploader {
|
||||||
const path = this._globalConfig.cacheDir + "/image_" + image.image
|
const path = this._globalConfig.cacheDir + "/image_" + image.image
|
||||||
console.log("Fetching image:", imageData.assets.sd.href)
|
console.log("Fetching image:", imageData.assets.sd.href)
|
||||||
await Utils.DownloadBlob(imageData.assets.sd.href, path)
|
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)
|
this._authors.push(authorName)
|
||||||
return mediaId
|
return mediaId
|
||||||
|
|
Loading…
Reference in a new issue