From 0e86df8da0abf75e4ad6f27a4f1d0a7a0cc0cd6d Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 16 Feb 2015 14:41:13 +0100 Subject: [PATCH] Set default avatar url properly --- app/utils/urls.coffee | 2 +- config/environment.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/utils/urls.coffee b/app/utils/urls.coffee index a6088527..76fe7901 100644 --- a/app/utils/urls.coffee +++ b/app/utils/urls.coffee @@ -39,6 +39,6 @@ email = (email) -> "mailto:#{email}" gravatarImage = (email, size) -> - "https://www.gravatar.com/avatar/#{md5(email)}?s=#{size}&d=#{encodeURIComponent(config.avatar_default_url)}" + "https://www.gravatar.com/avatar/#{md5(email)}?s=#{size}&d=#{encodeURIComponent(config.avatarDefaultUrl)}" `export { plainTextLog, githubPullRequest, githubCommit, githubRepo, githubWatchers, githubNetwork, githubAdmin, statusImage, ccXml, email, gravatarImage }` diff --git a/config/environment.js b/config/environment.js index 2b873c01..e099cd8b 100644 --- a/config/environment.js +++ b/config/environment.js @@ -28,7 +28,8 @@ module.exports = function(environment) { pro: false, enterprise: false, endpoints: {}, - intervals: { updateTimes: 1000 } + intervals: { updateTimes: 1000 }, + avatarDefaultUrl: 'https://travis-ci.org/images/ui/default-avatar.png' }; if (typeof process !== 'undefined') {