From ddda8feb211080cba891e73ea0f38fa9c968de6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 14 Jun 2024 21:15:45 -0400 Subject: [PATCH] encode both sides --- public/src/client/topic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic.js b/public/src/client/topic.js index 31e9b71ca6..2bc9979f7c 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -333,7 +333,7 @@ define('forum/topic', [ const topicMatch = validHref && pathname && pathname.match(/\/topic\/([\da-z-]+)/); if (postMatch) { const pid = postMatch[1]; - if (link.parents('[component="post"]').attr('data-pid') === pid) { + if (encodeURIComponent(link.parents('[component="post"]').attr('data-pid')) === encodeURIComponent(pid)) { return; // dont render self post }