mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 14:33:12 +02:00
Trim text
This commit is contained in:
parent
b13f42645b
commit
420164c59a
1 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,10 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
|||
data.visibleUsers = data.visibleUsers.filter(x => x != null);
|
||||
}
|
||||
|
||||
if (data.text) {
|
||||
data.text = data.text.trim();
|
||||
}
|
||||
|
||||
// Parse MFM
|
||||
const tokens = data.text ? parse(data.text) : [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue