forked from e621ng/e621ng
Fix bad index on post flags
This commit is contained in:
parent
b3f1bbdcd8
commit
8e82f53ca2
@ -239,8 +239,8 @@ module PostIndex
|
||||
notes: options[:notes] || Note.active.where(post_id: id).pluck(:body),
|
||||
uploader: uploader_id,
|
||||
approver: approver_id,
|
||||
deleter: options[:deleter] || PostFlag.where(post_id: id, is_resolved: false, is_deletion: true).order(id: :desc).first&.pluck(:creator_id),
|
||||
del_reason: options[:del_reason] || PostFlag.where(post_id: id, is_resolved: false, is_deletion: true).order(id: :desc).first&.pluck(:reason),
|
||||
deleter: options[:deleter] || PostFlag.where(post_id: id, is_resolved: false, is_deletion: true).order(id: :desc).first&.creator_id,
|
||||
del_reason: options[:del_reason] || PostFlag.where(post_id: id, is_resolved: false, is_deletion: true).order(id: :desc).first&.reason,
|
||||
width: image_width,
|
||||
height: image_height,
|
||||
mpixels: (image_width.to_f * image_height / 1_000_000).round(2),
|
||||
|
Loading…
Reference in New Issue
Block a user