2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Merge pull request #4938 from LeoMcA/ses-fix

FEATURE: setting to only use the key when finding the related post of…
This commit is contained in:
Régis Hanol 2017-06-22 16:15:57 +02:00 committed by GitHub
commit 66920cfafd
3 changed files with 6 additions and 0 deletions

View file

@ -486,6 +486,8 @@ module Email
end
def find_related_post
return if SiteSetting.find_related_post_with_key
message_ids = [@mail.in_reply_to, Email::Receiver.extract_references(@mail.references)]
message_ids.flatten!
message_ids.select!(&:present?)