mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Merge pull request #8736 from gschlager/rename_reply_id_column
REFACTOR: Rename `post_replies.reply_id` column to `post_replies.reply_post_id`
This commit is contained in:
@ -114,7 +114,7 @@ module Email
|
||||
|
||||
referenced_posts = Post.includes(:incoming_email)
|
||||
.joins("INNER JOIN post_replies ON post_replies.post_id = posts.id ")
|
||||
.where("post_replies.reply_id = ?", post_id)
|
||||
.where("post_replies.reply_post_id = ?", post_id)
|
||||
.order(id: :desc)
|
||||
|
||||
referenced_post_message_ids = referenced_posts.map do |referenced_post|
|
||||
|
Reference in New Issue
Block a user