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:
commit
66920cfafd
3 changed files with 6 additions and 0 deletions
|
@ -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?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue