Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't notify of new comments for just imported gists

  • Loading branch information...
commit 0f3963e136ecd3a52971db42aa0368f6fd966ce6 1 parent 93da555
Ryan Daigle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/gist.rb
2  app/models/gist.rb
View
@@ -160,7 +160,7 @@ def indexed_attributes
private
def check_for_new_comments
- if(comment_count_changed?)
+ if(!new_record? && comment_count_changed?)
log({ns: self, fn: __method__, measure: true, at: 'comment-count-changed'}, self, user)
QC.enqueue("CommentNotifier.gist_commented", id) if comment_count.to_i > comment_count_was.to_i
end
Please sign in to comment.
Something went wrong with that request. Please try again.