mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: associates email replies using both 'In-Reply-To' and 'References' headers
This commit is contained in:
parent
f5c0972210
commit
f145310cd5
6 changed files with 77 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue