mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
Fixes : use display_name in mail and in subject (#35)
This commit is contained in:
committed by
Franz Liedke
parent
55b1fd5461
commit
b9c4a003f2
@@ -74,7 +74,7 @@ class PostMentionedBlueprint implements BlueprintInterface, MailableInterface
|
||||
*/
|
||||
public function getEmailSubject()
|
||||
{
|
||||
return "{$this->reply->user->username} replied to your post in {$this->post->discussion->title}";
|
||||
return "{$this->reply->user->display_name} replied to your post in {$this->post->discussion->title}";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -66,7 +66,7 @@ class UserMentionedBlueprint implements BlueprintInterface, MailableInterface
|
||||
*/
|
||||
public function getEmailSubject()
|
||||
{
|
||||
return "{$this->post->user->username} mentioned you in {$this->post->discussion->title}";
|
||||
return "{$this->post->user->display_name} mentioned you in {$this->post->discussion->title}";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Hey {!! $user->username !!}!
|
||||
Hey {!! $user->display_name !!}!
|
||||
|
||||
{!! $blueprint->reply->user->username !!} replied to your post (#{!! $blueprint->post->number !!}) in {!! $blueprint->post->discussion->title !!}.
|
||||
{!! $blueprint->reply->user->display_name !!} replied to your post (#{!! $blueprint->post->number !!}) in {!! $blueprint->post->discussion->title !!}.
|
||||
|
||||
{!! app()->url() !!}/d/{!! $blueprint->reply->discussion_id !!}/{!! $blueprint->reply->number !!}
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Hey {!! $user->username !!}!
|
||||
Hey {!! $user->display_name !!}!
|
||||
|
||||
{!! $blueprint->post->user->username !!} mentioned you in a post in {!! $blueprint->post->discussion->title !!}.
|
||||
{!! $blueprint->post->user->display_name !!} mentioned you in a post in {!! $blueprint->post->discussion->title !!}.
|
||||
|
||||
{!! app()->url() !!}/d/{!! $blueprint->post->discussion_id !!}/{!! $blueprint->post->number !!}
|
||||
|
||||
|
Reference in New Issue
Block a user