Revert "Preload custom user fields when viewing flag queue"

This reverts commit 5bd1c5cc95f8f78ab74342dabbaa2f6366f57a62.
This commit is contained in:
Joshua Rosenfeld
2018-06-12 16:46:31 -04:00
parent 5bd1c5cc95
commit 1bb12ee1b6
2 changed files with 2 additions and 21 deletions

View File

@ -129,13 +129,10 @@ module FlagQuery
# TODO: add serializer so we can skip this
posts.map!(&:marshal_dump)
users = User.includes(:user_stat).where(id: user_ids.to_a).to_a
User.preload_custom_fields(users, User.whitelisted_user_custom_fields(guardian))
[
posts,
Topic.with_deleted.where(id: topic_ids.to_a).to_a,
users,
User.includes(:user_stat).where(id: user_ids.to_a).to_a,
all_post_actions,
total_rows
]