Skip to content

Commit

Permalink
make footer links optional with COMMUNITY_OTHERS_SHOW="false"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Jul 16, 2024
1 parent d553a6d commit 61e920d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/zz_codidact_sites.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Rails.cache.persistent 'codidact_sites', clear: true do
# Do not show codidact_sites for development (allows offline dev)
# Do not spam codidact.com while running the tests.
if Rails.env.development? || Rails.env.test?
if Rails.env.development? || Rails.env.test? || ENV.fetch("COMMUNITY_OTHERS_SHOW", "true") == "false"
[]
else
response = Net::HTTP.get_response(URI('https://codidact.com/communities.json'))
Expand Down

0 comments on commit 61e920d

Please sign in to comment.