mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
just use the address instead of building it ourselves
This commit is contained in:
parent
9435dd777f
commit
ca529a673a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue