Fix issue with comments longer than 64 chars
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -146,7 +146,7 @@ class NotificationHelper {
|
|||||||
->setDateTime(new DateTime())
|
->setDateTime(new DateTime())
|
||||||
->setObject('card', (string) $card->getId())
|
->setObject('card', (string) $card->getId())
|
||||||
->setSubject('card-comment-mentioned', [$card->getTitle(), $boardId, $this->currentUser])
|
->setSubject('card-comment-mentioned', [$card->getTitle(), $boardId, $this->currentUser])
|
||||||
->setMessage($comment->getMessage());
|
->setMessage('{message}', ['message' => $comment->getMessage()]);
|
||||||
$this->notificationManager->notify($notification);
|
$this->notificationManager->notify($notification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 . '');
|
$notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '//card/' . $cardId . '');
|
||||||
break;
|
break;
|
||||||
case 'board-shared':
|
case 'board-shared':
|
||||||
|
|||||||
Reference in New Issue
Block a user