Skip to content

Commit

Permalink
Fix incorrect display_name showing in email notifications (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Dec 21, 2020
1 parent e785d89 commit 9abc434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Notification/PostMentionedBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getEmailView()
public function getEmailSubject(TranslatorInterface $translator)
{
return $translator->trans('flarum-mentions.email.post_mentioned.subject', [
'{replier_display_name}' => $this->post->user->display_name,
'{replier_display_name}' => $this->reply->user->display_name,
'{title}' => $this->post->discussion->title
]);
}
Expand Down
2 changes: 1 addition & 1 deletion views/emails/postMentioned.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{!! $translator->trans('flarum-mentions.email.post_mentioned.body', [
'{recipient_display_name}' => $user->display_name,
'{replier_display_name}' => $blueprint->post->user->display_name,
'{replier_display_name}' => $blueprint->reply->user->display_name,
'{post_number}' => $blueprint->post->number,
'{title}' => $blueprint->post->discussion->title,
'{url}' => $url->to('forum')->route('discussion', ['id' => $blueprint->reply->discussion_id, 'near' => $blueprint->reply->number]),
Expand Down

0 comments on commit 9abc434

Please sign in to comment.