Fix mentioning bug
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
c5e4bd9f93
commit
7ca39764f1
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ const submitCompose = (composeId: string, opts: SubmitComposeOpts = {}) =>
|
|||
const mentions: string[] | null = status.match(/(?:^|\s)@([a-z\d_-]+(?:@[^@\s]+)?)/gi);
|
||||
|
||||
if (mentions) {
|
||||
to = to.union(mentions.map(mention => mention.trim().slice(1)));
|
||||
to = to.union(mentions.map(mention => mention.replace(/ /g, '').trim().slice(1)));
|
||||
}
|
||||
|
||||
dispatch(submitComposeRequest(composeId));
|
||||
|
|
Loading…
Reference in a new issue