mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Trim text
This commit is contained in:
parent
a297c9f03c
commit
81570f0290
@ -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 New Issue
Block a user