mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #13081, don't add mention when you are replying to yourself
This commit is contained in:
@@ -397,7 +397,7 @@ define('forum/topic/postTools', [
|
||||
return;
|
||||
}
|
||||
const post = button.parents('[data-pid]');
|
||||
if (post.length) {
|
||||
if (post.length && !post.hasClass('self-post')) {
|
||||
require(['slugify'], function (slugify) {
|
||||
slug = slugify(post.attr('data-username'), true);
|
||||
if (!slug) {
|
||||
|
||||
Reference in New Issue
Block a user