From 9d5fd432eec76e1d7f037b7b51d38372e1966197 Mon Sep 17 00:00:00 2001 From: Adam Hoyle Date: Wed, 25 Aug 2021 22:00:41 +0100 Subject: [PATCH] Prioritise strings[].name over strings[].community --- app/models/communities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5