mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixed #869
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user