diff --git a/src/Logic/ImageProviders/AllImageProviders.ts b/src/Logic/ImageProviders/AllImageProviders.ts index 7d1124016..96552b06d 100644 --- a/src/Logic/ImageProviders/AllImageProviders.ts +++ b/src/Logic/ImageProviders/AllImageProviders.ts @@ -106,15 +106,13 @@ export default class AllImageProviders { /** * Given a list of URLs, tries to detect the images. Used in e.g. the comments - * @param url */ public static loadImagesFrom(urls: string[]): Store { const tags = { - id: "na", + id: urls.join(";"), } for (let i = 0; i < urls.length; i++) { - const url = urls[i] - tags["image:" + i] = url + tags["image:" + i] = urls[i] } return this.LoadImagesFor(new ImmutableStore(tags)) } diff --git a/src/UI/Popup/Notes/NoteCommentElement.svelte b/src/UI/Popup/Notes/NoteCommentElement.svelte index b627bcfd3..2795be37e 100644 --- a/src/UI/Popup/Notes/NoteCommentElement.svelte +++ b/src/UI/Popup/Notes/NoteCommentElement.svelte @@ -44,7 +44,7 @@ }) .filter((link) => !link.startsWith("https://wiki.openstreetmap.org/wiki/File:")) - const attributedImages = AllImageProviders.loadImagesFrom(images) + let attributedImages = AllImageProviders.loadImagesFrom(images) /** * Class of the little icons indicating 'opened', 'comment' and 'resolved' */