TopicQuery already provides a lot of safeguards and options for filtering topic, and enforcing permissions. It makes sense to rely on it as other plugins like discourse-assign do. As a bonus, we now have access to the current_user while serializing these topics, so users will see things like unread posts count just like we do for the lists. |
||
|---|---|---|
| .. | ||
| ai_bot | ||
| ai_helper | ||
| topic_spec.rb | ||