mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: 'In-Reply-To' header should default to topic_message_id
This commit is contained in:
parent
6768c7fc0b
commit
a03287f2ee
2 changed files with 71 additions and 3 deletions
|
@ -100,8 +100,8 @@ module Email
|
|||
|
||||
@message.header['Message-ID'] = incoming_message_id || post_message_id
|
||||
if post && post.post_number > 1
|
||||
@message.header['In-Reply-To'] = referenced_post_message_ids.first
|
||||
@message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten
|
||||
@message.header['In-Reply-To'] = referenced_post_message_ids.first || topic_message_id
|
||||
@message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten.compact.uniq
|
||||
end
|
||||
|
||||
# http://www.ietf.org/rfc/rfc2919.txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue