mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:51:16 +08:00
Revert "Revert "Preload custom user fields when viewing flag queue""
This reverts commit 1bb12ee1b6f0c5428a046bb01a2c12f969cc6480.
This commit is contained in:
@ -129,10 +129,13 @@ 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,
|
||||
User.includes(:user_stat).where(id: user_ids.to_a).to_a,
|
||||
users,
|
||||
all_post_actions,
|
||||
total_rows
|
||||
]
|
||||
|
Reference in New Issue
Block a user