Themes(note): don't show notes which have _no_ comments; these are probably redacted. Fix #2299

This commit is contained in:
Pieter Vander Vennet 2024-12-03 00:58:51 +01:00
parent ceadd9fdef
commit ec7b16638d

View file

@ -28,6 +28,7 @@
"_is_import_note:=(() => {const lines = feat.properties['_first_comment'].split('\\n'); const matchesMapCompleteURL = lines.map(l => l.match(\".*https://mapcomplete.\\(osm.be|org\\)/\\([a-zA-Z_-]+\\)\\(.html\\).*#import\")); const matchedIndexes = matchesMapCompleteURL.map((doesMatch, i) => [doesMatch !== null, i]).filter(v => v[0]).map(v => v[1]); return matchedIndexes[0] })()"
],
"minzoom": 7,
"isShown": "_total_comments>0",
"title": {
"render": {
"en": "Note",