mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-19 14:02:58 +01:00
encode both sides
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user