mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
This commit is contained in:
@@ -11,7 +11,8 @@ define('forum/topic/postTools', [
|
||||
'bootbox',
|
||||
'alerts',
|
||||
'hooks',
|
||||
], function (share, navigator, components, translator, votes, api, bootbox, alerts, hooks) {
|
||||
'slugify',
|
||||
], function (share, navigator, components, translator, votes, api, bootbox, alerts, hooks, slugify) {
|
||||
const PostTools = {};
|
||||
|
||||
let staleReplyAnyway = false;
|
||||
@@ -374,7 +375,7 @@ define('forum/topic/postTools', [
|
||||
}
|
||||
|
||||
if (post.length) {
|
||||
slug = post.attr('data-userslug');
|
||||
slug = slugify(post.attr('data-username'), true);
|
||||
if (!slug) {
|
||||
if (post.attr('data-uid') !== '0') {
|
||||
slug = '[[global:former_user]]';
|
||||
|
||||
Reference in New Issue
Block a user