mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: associates email replies using both 'In-Reply-To' and 'References' headers
This commit is contained in:
@ -211,10 +211,9 @@ module Email
|
||||
message_ids.uniq!
|
||||
return if message_ids.empty?
|
||||
|
||||
IncomingEmail.where.not(post_id: nil)
|
||||
.where(message_id: message_ids)
|
||||
.first
|
||||
.try(:post)
|
||||
Post.where(id: IncomingEmail.where(message_id: message_ids).select(:post_id))
|
||||
.order(created_at: :desc)
|
||||
.first
|
||||
end
|
||||
|
||||
def extract_references
|
||||
|
Reference in New Issue
Block a user