diff --git a/app/models/inbox.rb b/app/models/inbox.rb index 204190bf..0d620f67 100644 --- a/app/models/inbox.rb +++ b/app/models/inbox.rb @@ -6,7 +6,7 @@ class Inbox < ActiveRecord::Base answer = Answer.create!(content: answer, user: user, question: self.question) - Notification.notify self.question.user, answer + Notification.notify self.question.user, answer unless self.question.author_is_anonymous user.increment! :answered_count self.question.increment! :answer_count self.destroy