diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 52f75bd4c..e9fad5a3e 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -115,10 +115,10 @@ class Notifier implements INotifier { $dn = $params[2]; } $notification->setParsedSubject( - (string) $l->t('%s has mentioned in a comment on "%s".', [$dn, $params[0]]) + (string) $l->t('%s has mentioned you in a comment on "%s".', [$dn, $params[0]]) ); $notification->setRichSubject( - (string) $l->t('{user} has mentioned in a comment on "%s".', [$params[0]]), + (string) $l->t('{user} has mentioned you in a comment on "%s".', [$params[0]]), [ 'user' => [ 'type' => 'user', diff --git a/tests/unit/Notification/NotifierTest.php b/tests/unit/Notification/NotifierTest.php index c61399594..cb128acb5 100644 --- a/tests/unit/Notification/NotifierTest.php +++ b/tests/unit/Notification/NotifierTest.php @@ -149,13 +149,13 @@ class NotifierTest extends \Test\TestCase { $this->cardMapper->expects($this->once()) ->method('findBoardId') ->willReturn(999); - $expectedMessage = 'admin has mentioned in a comment on "Card title".'; + $expectedMessage = 'admin has mentioned you in a comment on "Card title".'; $notification->expects($this->once()) ->method('setParsedSubject') ->with($expectedMessage); $notification->expects($this->once()) ->method('setRichSubject') - ->with('{user} has mentioned in a comment on "Card title".'); + ->with('{user} has mentioned you in a comment on "Card title".'); $this->url->expects($this->once())