1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 10:16:09 +02:00

Replace username with display name in more places (#3040)

* Replace username with display name in more places

* More readable spread operator and translator user magic
This commit is contained in:
Clark Winkelmann
2021-08-22 00:34:34 +02:00
committed by GitHub
parent af89b23f67
commit aba6836bdd
3 changed files with 9 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ class NotificationMailer
$blueprint->getEmailView(),
compact('blueprint', 'user'),
function (Message $message) use ($blueprint, $user) {
$message->to($user->email, $user->username)
$message->to($user->email, $user->display_name)
->subject($blueprint->getEmailSubject($this->translator));
}
);