mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 14:24:54 +00:00
fa5f3e228c
The idea behind this refactor is to centralise all of the user ignoring / muting / disallow PM checks in a single place, so they can be used consistently in core as well as for plugins like chat, while improving the main bulk of the checks to run in a single fast non-AR query. Also fixed up the invite error when someone is muting/ignoring the user that is trying to invite them to the topic.