mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Remove N+1 queries on user messages page.
This commit is contained in:
@@ -26,6 +26,7 @@ class TopicListSerializer < ApplicationSerializer
|
||||
def include_tags?
|
||||
SiteSetting.tagging_enabled && SiteSetting.show_filter_by_tag
|
||||
end
|
||||
|
||||
def tags
|
||||
Tag.top_tags
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user