mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Add space when inserting a post mention
This commit is contained in:
parent
83ed624223
commit
02d3355989
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user