This commit is contained in:
Pieter Vander Vennet 2024-11-24 23:54:13 +01:00
parent 1c7bd21c8d
commit 6e8d6c7bbe
2 changed files with 3 additions and 5 deletions

View file

@ -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<ProvidedImage[]> {
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))
}