1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-11 21:29:03 +09:00

Trim text

Closes #2595
This commit is contained in:
syuilo 2018-09-02 22:40:27 +09:00
parent ea9b48db3c
commit 13e822cba6

View File

@ -74,7 +74,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
createdAt: new Date(),
fileId: file ? file._id : undefined,
recipientId: recipient._id,
text: text ? text : undefined,
text: text ? text.trim() : undefined,
userId: user._id,
isRead: false
});