mirror of
https://github.com/discourse/discourse.git
synced 2025-06-11 12:43:43 +08:00
just use the address instead of building it ourselves
This commit is contained in:
@ -55,7 +55,7 @@ module Email
|
|||||||
raise BadDestinationAddress if dest_infos.empty?
|
raise BadDestinationAddress if dest_infos.empty?
|
||||||
|
|
||||||
from = @message[:from].address_list.addresses.first
|
from = @message[:from].address_list.addresses.first
|
||||||
user_email = "#{from.local}@#{from.domain}"
|
user_email = from.address
|
||||||
user_name = from.display_name
|
user_name = from.display_name
|
||||||
|
|
||||||
# TODO: deal with suspended/inactive users
|
# TODO: deal with suspended/inactive users
|
||||||
|
Reference in New Issue
Block a user