From 77fd49b107f796b6dc36db7a521fa9c978ed04a5 Mon Sep 17 00:00:00 2001 From: Will Binns Date: Tue, 7 Mar 2017 09:11:24 -0600 Subject: [PATCH] contributors: Fix broken test GitHub recently made a change on their end to the URLs with which profile images are stored. As a result, this has caused the profile images on the About Us page to break, and tests to fail. This updates the URL to what GitHub has switched to, in order to resolve the issue. --- _plugins/contributors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/contributors.rb b/_plugins/contributors.rb index 74ea41b4..ebd45d82 100644 --- a/_plugins/contributors.rb +++ b/_plugins/contributors.rb @@ -59,7 +59,7 @@ module Jekyll x['name'] = name x['contributions'] = c['contributions'] # Set avatar_url when available - if c.has_key?('avatar_url') and c['avatar_url'].is_a?(String) and /^https:\/\/avatars\.githubusercontent\.com\/u\/[0-9]{1,10}\?v=[0-9]{1,2}$/.match(c['avatar_url']) + if c.has_key?('avatar_url') and c['avatar_url'].is_a?(String) and /^https:\/\/avatars1\.githubusercontent\.com\/u\/[0-9]{1,10}\?v=[0-9]{1,2}$/.match(c['avatar_url']) x['avatar_url'] = c['avatar_url'] + '&size=16' end # Set login when available