Permalink
Browse files

Update comment notification wording

  • Loading branch information...
1 parent 0f3963e commit dfb9be575dacc86acc466dbe571db3769a0df0c2 @rwdaigle committed Dec 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/comment_notifier.rb
View
4 app/models/comment_notifier.rb
@@ -8,14 +8,14 @@ def gist_commented(gist_id)
if(user.notify_comments?)
log({ns: self, fn: __method__, measure: true, at: 'sending-notification'}, gist, user)
Pony.mail(:to => user.gh_email, :subject => "\"#{gist.description}\" has a new comment", :body => <<-EOS)
-The extremely unsophisticated comment-detection algorithm at Gisted would like to let you know that you have a new comment on your "#{gist.description}" gist.
+The extremely unsophisticated comment-detection algorithm at Gisted would like to let you know that you have a new comment on your #{!gist.description.blank? ? gist.description : 'Untitled'} gist.
View your gist's comments at #{gist.url}#comments
---
-Gisted (https://gistedapp.herokuapp.com/)
-If this email offends your delicate sensibilities, you can opt out by clikcing the "turn off comment notifications" link on the Gisted interface: https://gistedapp.herokuapp.com/ or by complaining directly to @rwdaigle.
+If this email offends your delicate sensibilities, you can opt out by clicking the "turn off comment notifications" link on the Gisted interface: https://gistedapp.herokuapp.com/ or by complaining directly to @rwdaigle.
EOS
end
end

0 comments on commit dfb9be5

Please sign in to comment.