Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Don't try to post to Slack if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlacan committed Aug 11, 2017
1 parent ee5107c commit 1ea26d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/compliment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def upheart_count
private

def post_to_slack
Slack.notify_compliment(self)
Slack.notify_compliment(self) if ENV["SLACK_INCOMING_WEBHOOK"].present?
end

def create_complimenter_upheart
Expand Down

0 comments on commit 1ea26d7

Please sign in to comment.