Skip to content

Commit 234f094

Browse files
comfyui-wikiclaude
andauthored
Fix giscus language mapping issue by enforcing strict pathname matching (#528)
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 <[email protected]>
1 parent f19380f commit 234f094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

giscus-comments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
script.setAttribute('data-category', 'Announcements');
258258
script.setAttribute('data-category-id', 'DIC_kwDOLlassc4CtQoz'); // Replace with real ID
259259
script.setAttribute('data-mapping', 'pathname');
260-
script.setAttribute('data-strict', '0');
260+
script.setAttribute('data-strict', '1');
261261
script.setAttribute('data-reactions-enabled', '1');
262262
script.setAttribute('data-emit-metadata', '0');
263263
script.setAttribute('data-input-position', 'bottom');

0 commit comments

Comments
 (0)