Skip to content

Node.js based forum software built for the modern web

fix: #13081, don't add mention when you are replying to yourself

Julian Lamd5865613e3ca
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js
index 42f10093a0..640d936f16 100644
--- a/public/src/client/topic/postTools.js
+++ b/public/src/client/topic/postTools.js
@@ -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) {