mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
This commit is contained in:
@@ -11,7 +11,8 @@ define('forum/topic/postTools', [
|
|||||||
'bootbox',
|
'bootbox',
|
||||||
'alerts',
|
'alerts',
|
||||||
'hooks',
|
'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 = {};
|
const PostTools = {};
|
||||||
|
|
||||||
let staleReplyAnyway = false;
|
let staleReplyAnyway = false;
|
||||||
@@ -374,7 +375,7 @@ define('forum/topic/postTools', [
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (post.length) {
|
if (post.length) {
|
||||||
slug = post.attr('data-userslug');
|
slug = slugify(post.attr('data-username'), true);
|
||||||
if (!slug) {
|
if (!slug) {
|
||||||
if (post.attr('data-uid') !== '0') {
|
if (post.attr('data-uid') !== '0') {
|
||||||
slug = '[[global:former_user]]';
|
slug = '[[global:former_user]]';
|
||||||
|
|||||||
Reference in New Issue
Block a user