mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Apply mute filters to questions asked directly
This commit is contained in:
parent
249438e5a8
commit
c31ab3578d
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ class Ajax::QuestionController < AjaxController
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
Inbox.create!(user_id: u.id, question_id: question.id, new: true)
|
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
|
end
|
||||||
|
|
||||||
@response[:status] = :okay
|
@response[:status] = :okay
|
||||||
|
|
Loading…
Reference in a new issue