mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:16:28 +02:00
fix mention regression
This commit is contained in:
@@ -205,7 +205,7 @@ define('forum/topic/postTools', ['composer', 'share', 'navigator'], function(com
|
||||
if (post.length) {
|
||||
username = post.attr('data-username').replace(/\s/g, '-');
|
||||
}
|
||||
if (post.attr('data-uid') !== '0') {
|
||||
if (post.length && post.attr('data-uid') !== '0') {
|
||||
username = '@' + username;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user