Fix issue with comments longer than 64 chars

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-11-12 12:55:11 +01:00
parent 6c5f09e1f9
commit e1c700878a
2 changed files with 4 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ class NotificationHelper {
->setDateTime(new DateTime())
->setObject('card', (string) $card->getId())
->setSubject('card-comment-mentioned', [$card->getTitle(), $boardId, $this->currentUser])
->setMessage($comment->getMessage());
->setMessage('{message}', ['message' => $comment->getMessage()]);
$this->notificationManager->notify($notification);
}
}

View File

@@ -127,7 +127,9 @@ class Notifier implements INotifier {
]
]
);
$notification->setParsedMessage($notification->getMessage());
if ($notification->getMessage() === '{message}') {
$notification->setParsedMessage($notification->getMessageParameters()['message']);
}
$notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '//card/' . $cardId . '');
break;
case 'board-shared':