Add space when inserting a post mention

This commit is contained in:
SychO9 2021-05-02 21:37:31 +01:00
parent 83ed624223
commit 02d3355989

View File

@ -4,7 +4,7 @@ import cleanDisplayName from './cleanDisplayName';
function insertMention(post, composer, quote) { function insertMention(post, composer, quote) {
const user = post.user(); const user = post.user();
const mention = `@"${(user && cleanDisplayName(user)) || app.translator.trans('core.lib.username.deleted_text')}"#p${post.id()}`; const mention = `@"${(user && cleanDisplayName(user)) || app.translator.trans('core.lib.username.deleted_text')}"#p${post.id()} `;
// If the composer is empty, then assume we're starting a new reply. // If the composer is empty, then assume we're starting a new reply.
// In which case we don't want the user to have to confirm if they // In which case we don't want the user to have to confirm if they