Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #185 from atmos/better-usernames
Browse files Browse the repository at this point in the history
Display a user_name if present
  • Loading branch information
atmos committed Feb 21, 2016
2 parents ef6cca4 + b058b7d commit 6859f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/heaven/notifier/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def deployment_payload
end

def chat_user
deployment_payload["notify"]["user"] || "unknown"
deployment_payload["notify"]["user_name"] ||
deployment_payload["notify"]["user"] || "unknown"
end

def chat_room
Expand Down

0 comments on commit 6859f87

Please sign in to comment.