diff --git a/app/models/notification_services/flowdock_service.rb b/app/models/notification_services/flowdock_service.rb index 3350fb5..c84dec1 100644 --- a/app/models/notification_services/flowdock_service.rb +++ b/app/models/notification_services/flowdock_service.rb @@ -21,7 +21,7 @@ if defined? Flowdock end def create_notification(problem) - flow = Flowdock::Flow.new(:api_token => api_token, :source => "Errbit", :from => {:name => "Errbit", :address => 'support@flowdock.com'}) + flow = Flowdock::Flow.new(:api_token => api_token, :source => "Errbit", :from => {:name => "Errbit", :address => ENV['ERRBIT_EMAIL_FROM'] || 'support@flowdock.com'}) subject = "[#{problem.environment}] #{problem.message.to_s.truncate(100)}" url = app_problem_url problem.app, problem flow.push_to_team_inbox(:subject => subject, :content => content(problem, url), :project => project_name(problem), :link => url) diff --git a/docs/ENV-VARIABLES.md b/docs/ENV-VARIABLES.md index 8c6640b..784496b 100644 --- a/docs/ENV-VARIABLES.md +++ b/docs/ENV-VARIABLES.md @@ -69,3 +69,9 @@ variable. * MONGOID_PASSWORD * MONGOID_DATABASE +## Flowdock notification adapter + +If you noticed default Gravatar icon in your Flowdock notifications you +may want to [add Errbit icon](http://gravatar.com) for email that is +set in ERRBIT_EMAIL_FROM. +You don't need to approve or authorize it on Flowdock because it is used only for an icon. -- libgit2 0.21.2