Skip to content

Commit 8a11f6c

Browse files
authored
Merge pull request bemanproject#103 from bemanproject/fix-discourse-authors
Fix bug in displaying discourse comments for each author page
2 parents f6ce0f8 + d06e8eb commit 8a11f6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/DiscourseComments/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ export default function DiscourseComments() {
1717
return null;
1818
}
1919

20-
if (pathname == "/blog" || pathname == '/blog/') {
20+
if (
21+
pathname === "/blog" ||
22+
pathname === "/blog/" ||
23+
pathname.startsWith("/blog/authors/") ||
24+
pathname.startsWith("/blog/tags/")
25+
) {
2126
return;
2227
}
2328

0 commit comments

Comments
 (0)