From 753c45f57d52ec551529c9bb6bddcc51a0ea933a Mon Sep 17 00:00:00 2001 From: ComfyUI Wiki Date: Tue, 4 Nov 2025 21:17:46 +0800 Subject: [PATCH] Fix giscus language mapping issue by enforcing strict pathname matching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed data-strict from '0' to '1' to prevent English pages from matching Chinese discussion threads. This ensures that: - English pages (/tutorials/video/wan/wan2_2) will have their own separate discussions - Chinese pages (/zh-CN/tutorials/video/wan/wan2_2) will maintain their separate discussions - No cross-language comment mixing will occur Fixes the issue where English tutorial pages were displaying Chinese comments due to fuzzy pathname matching. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- giscus-comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscus-comments.js b/giscus-comments.js index 362463a3..33bc7a8f 100644 --- a/giscus-comments.js +++ b/giscus-comments.js @@ -257,7 +257,7 @@ script.setAttribute('data-category', 'Announcements'); script.setAttribute('data-category-id', 'DIC_kwDOLlassc4CtQoz'); // Replace with real ID script.setAttribute('data-mapping', 'pathname'); - script.setAttribute('data-strict', '0'); + script.setAttribute('data-strict', '1'); script.setAttribute('data-reactions-enabled', '1'); script.setAttribute('data-emit-metadata', '0'); script.setAttribute('data-input-position', 'bottom');