Skip to content

Commit

Permalink
Fix issue with comments longer than 64 chars
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 12, 2018
1 parent 6c5f09e commit e1c7008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Notification/NotificationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function sendMention(IComment $comment) {
->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);
}
}
Expand Down
4 changes: 3 additions & 1 deletion lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ public function prepare(INotification $notification, $languageCode) {
]
]
);
$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':
Expand Down

0 comments on commit e1c7008

Please sign in to comment.