Skip to content

Commit

Permalink
Fix composer text when change visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Aug 31, 2020
1 parent 4da3add commit ed36140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/reducers/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const statusToTextMentions = (text, privacy, status) => {

mentions = mentions.union(status.get('mentions').filterNot(mention => mention.get('id') === me).map(mention => `@${mention.get('acct')} `));

const match = /^(\s*(?:(?:@\S+)\s*)*)(.*)/.exec(text);
const match = /^(\s*(?:(?:@\S+)\s*)*)([\s\S]*)/.exec(text);
const extrctMentions = ImmutableOrderedSet(match[1].trim().split(/\s+/).filter(Boolean).map(mention => `${mention} `));
const others = match[2];

Expand Down

0 comments on commit ed36140

Please sign in to comment.