From d876054bf0a808ef3936cb84ca31f9eabe0e5aa3 Mon Sep 17 00:00:00 2001 From: Nikita Fedyashev Date: Fri, 14 Jun 2013 04:32:42 +0600 Subject: [PATCH] Update *from* email to display a valid Flowdock avatar Flowdock doesn't validate or have some sort of confirmation for email addresses. As long as you know Flow API token you're free to post with any email. --- app/models/notification_services/flowdock_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification_services/flowdock_service.rb b/app/models/notification_services/flowdock_service.rb index 04ab4eb..3350fb5 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 => Errbit::Config.email_from}) + flow = Flowdock::Flow.new(:api_token => api_token, :source => "Errbit", :from => {:name => "Errbit", :address => '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) -- libgit2 0.21.2