DEV: Don't eager load tags when tagging is not enabled.
This commit is contained in:
parent
14a0247301
commit
7719453fb7
|
@ -586,7 +586,8 @@ class TopicQuery
|
|||
options = @options
|
||||
options.reverse_merge!(per_page: per_page_setting)
|
||||
|
||||
result = Topic.includes(:tags, :allowed_users)
|
||||
result = Topic.includes(:allowed_users)
|
||||
result = result.includes(:tags) if SiteSetting.tagging_enabled
|
||||
|
||||
if type == :group
|
||||
result = result.joins(
|
||||
|
|
Loading…
Reference in New Issue