:tags,
:preview_cards,
:preloadable_poll,
- account: :account_stat,
+ account: [:account_stat, :user],
active_mentions: { account: :account_stat },
reblog: [
:application,
:conversation,
:status_stat,
:preloadable_poll,
- account: :account_stat,
+ account: [:account_stat, :user],
active_mentions: { account: :account_stat },
],
thread: { account: :account_stat }
return if account_ids.empty?
- accounts = Account.where(id: account_ids).includes(:account_stat).index_by(&:id)
+ accounts = Account.where(id: account_ids).includes(:account_stat, :user).index_by(&:id)
cached_items.each do |item|
item.account = accounts[item.account_id]