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

This commit is contained in:
Julian Lam
2025-05-14 14:14:06 -04:00
parent f176d6b2c5
commit d5865613e3

View File

@@ -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) {