FIX: extract filter pm and categories from UserAction (PR #14569)

Those two methods are useful for different places like discourse-reactions:

GitHub

Is the assignment necessary? Isn’t it enough to simply call builder.where()?

You are right, it was not necessary :+1: