diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index cc5524655b..822ab3b2ca 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -376,7 +376,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) { var username = '', post = $(this).parents('li[data-pid]'); if (post.length) { - username = '@' + post.attr('data-username') + ' '; + username = '@' + post.attr('data-username').replace(/\s/g, '-') + ' '; } if (thread_state.locked !== '1') { @@ -391,7 +391,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) { pid = $(this).parents('.post-row').attr('data-pid'); if (post.length) { - username = '@' + post.attr('data-username'); + username = '@' + post.attr('data-username').replace(/\s/g, '-'); } socket.emit('posts.getRawPost', pid, function(err, post) {