]> git.openstreetmap.org Git - rails.git/commitdiff
Prioritise strings[].name over strings[].community
authorAdam Hoyle <atomoil@gmail.com>
Wed, 25 Aug 2021 21:00:41 +0000 (22:00 +0100)
committerAdam Hoyle <atomoil@gmail.com>
Wed, 25 Aug 2021 21:00:41 +0000 (22:00 +0100)
app/models/communities.rb

index fee0b2adee1b14b7e0ff73566bf79bc698d963eb..008735224ef89235e0faff8f36f3c5565b329484 100644 (file)
@@ -29,7 +29,7 @@ class Communities
         next unless key == "type" && value == "osm-lc" && id != "OSMF"
 
         strings = resource["strings"]
-        chapter_name = strings["community"] || strings["name"]
+        chapter_name = strings["name"] || "!! " + strings["community"]
         url = strings["url"]
         local_chapters.push({ :id => id, :name => chapter_name, :url => url })
       end