better truncate message in notification - closes #9887

skip-glicko-obvious
Thibault Duplessis 2021-09-30 09:30:35 +02:00
parent 5e318de0cf
commit 0247686705
2 changed files with 1 additions and 3 deletions

View File

@ -80,7 +80,7 @@ final private class MsgNotify(
Notification.Notifies(dest),
PrivateMessage(
PrivateMessage.Sender(msg.user),
PrivateMessage.Text(shorten(msg.text, 80))
PrivateMessage.Text(shorten(msg.text, 40))
)
)
}

View File

@ -89,9 +89,7 @@ final class NotifyApi(
}
/** Inserts notification into the repository.
*
* If the user already has an unread notification on the topic, discard it.
*
* If the user does not already have an unread notification on the topic, returns it unmodified.
*/
private def insertOrDiscardNotification(notification: Notification): Fu[Option[Notification]] =