Skip to content

Commit 447dceb

Browse files
committed
Show actual from address of non-user messages
Registered users have probably set their default email address to something reasonable, but for non-users it's jarring to see an email address that most likely haven't been valid in many years when reading a message they sent.
1 parent 26ae920 commit 447dceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/topics/_message.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
.author-name = link_to display_alias.name, profile_path, class: "author-name-link"
3232
- else
3333
.author-name = display_alias.name
34-
.author-email = display_alias.email
34+
.author-email = message.sender_person.user ? display_alias.email : message.sender.email
3535
.message-meta
3636
.message-date
3737
time datetime=message.created_at.iso8601 title=absolute_time_display(message.created_at)

0 commit comments

Comments
 (0)