Fix: don't attempt to show an osm wiki page as image, fix #1776
This commit is contained in:
parent
417dc1633e
commit
7dc43f933e
1 changed files with 1 additions and 0 deletions
|
@ -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) =>
|
||||
|
|
Loading…
Reference in a new issue