* Revert "[deploy] Revert removal of unneeded eager load (if needed) (#10179)" This reverts commit11c7b148da. * Revert "[deploy] Revert "Migrate ProfileImage to Images::Profile (#10055)" (#10149)" This reverts commit5657067e55.
7 lines
304 B
Ruby
7 lines
304 B
Ruby
json.array! @users.each do |user|
|
|
json.extract!(user, :id, :name, :username)
|
|
|
|
json.summary truncate(user.summary.presence || "Active #{community_name} author", length: 100)
|
|
json.profile_image_url Images::Profile.call(user.profile_image_url, length: 90)
|
|
json.following false
|
|
end
|