From: Adam Hoyle Date: Wed, 25 Aug 2021 21:00:41 +0000 (+0100) Subject: Prioritise strings[].name over strings[].community X-Git-Tag: live~1688^2~36 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9d5fd432eec76e1d7f037b7b51d38372e1966197?ds=sidebyside;hp=-c Prioritise strings[].name over strings[].community --- 9d5fd432eec76e1d7f037b7b51d38372e1966197 diff --git a/app/models/communities.rb b/app/models/communities.rb index fee0b2ade..008735224 100644 --- a/app/models/communities.rb +++ b/app/models/communities.rb @@ -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