Fix: don't attempt to show an osm wiki page as image, fix #1776

This commit is contained in:
Pieter Vander Vennet 2024-02-12 14:23:06 +01:00
parent 417dc1633e
commit 7dc43f933e

View file

@ -75,6 +75,7 @@ export default class NoteCommentElement extends Combine {
const extension = link.substring(lastDotIndex + 1, link.length)
return Utils.imageExtensions.has(extension)
})
.filter(link => !link.startsWith("https://wiki.openstreetmap.org/wiki/File:"))
let imagesEl: BaseUIElement = undefined
if (images.length > 0) {
const imageEls = images.map((i) =>