mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:52:46 +08:00
FIX: support 'nil' alternative reply by email address
This commit is contained in:
parent
22bbc3ea73
commit
9bf34ce49b
|
@ -344,7 +344,7 @@ module Email
|
|||
@reply_by_email_address_regex ||= begin
|
||||
reply_addresses = [
|
||||
SiteSetting.reply_by_email_address,
|
||||
*SiteSetting.alternative_reply_by_email_addresses.split("|")
|
||||
*(SiteSetting.alternative_reply_by_email_addresses.presence || "").split("|")
|
||||
]
|
||||
escaped_reply_addresses = reply_addresses.select { |a| a.present? }
|
||||
.map { |a| Regexp.escape(a) }
|
||||
|
|
Loading…
Reference in New Issue
Block a user