Apply mute filters to questions asked directly
This commit is contained in:
parent
249438e5a8
commit
c31ab3578d
|
@ -66,8 +66,10 @@ class Ajax::QuestionController < AjaxController
|
|||
return
|
||||
end
|
||||
|
||||
unless MuteRule.where(user: u).any? { |rule| rule.applies_to? question }
|
||||
Inbox.create!(user_id: u.id, question_id: question.id, new: true)
|
||||
end
|
||||
end
|
||||
|
||||
@response[:status] = :okay
|
||||
@response[:message] = I18n.t('messages.question.create.okay')
|
||||
|
|
Loading…
Reference in New Issue