FIX: Show inviter name in email's from field (#13141)

'From' field of the email contained the name of the user who posted the
shared post. Instead, it should contain the name of the inviter.
This commit is contained in:
Dan Ungureanu
2021-05-26 05:55:07 +03:00
committed by GitHub
parent f78fa76847
commit a5273b37f7
3 changed files with 46 additions and 3 deletions

View File

@ -1695,7 +1695,9 @@ class Topic < ActiveRecord::Base
post_number: 1,
data: {
topic_title: self.title,
display_username: username
display_username: username,
original_user_id: user.id,
original_username: user.username
}.to_json
)
end