mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
fixed #869
This commit is contained in:
@@ -376,7 +376,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
var username = '',
|
var username = '',
|
||||||
post = $(this).parents('li[data-pid]');
|
post = $(this).parents('li[data-pid]');
|
||||||
if (post.length) {
|
if (post.length) {
|
||||||
username = '@' + post.attr('data-username') + ' ';
|
username = '@' + post.attr('data-username').replace(/\s/g, '-') + ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thread_state.locked !== '1') {
|
if (thread_state.locked !== '1') {
|
||||||
@@ -391,7 +391,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
pid = $(this).parents('.post-row').attr('data-pid');
|
pid = $(this).parents('.post-row').attr('data-pid');
|
||||||
|
|
||||||
if (post.length) {
|
if (post.length) {
|
||||||
username = '@' + post.attr('data-username');
|
username = '@' + post.attr('data-username').replace(/\s/g, '-');
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('posts.getRawPost', pid, function(err, post) {
|
socket.emit('posts.getRawPost', pid, function(err, post) {
|
||||||
|
|||||||
Reference in New Issue
Block a user