This commit is contained in:
@@ -121,7 +121,7 @@ function renderComments(comments) {
|
||||
* ----------------------------- */
|
||||
|
||||
async function fetchComments() {
|
||||
const res = await fetch(`/api/comments/${pageSlug}`);
|
||||
const res = await window.orgAuth.fetch(`/api/comments/${pageSlug}`);
|
||||
if (!res.ok) {
|
||||
console.error("Failed to fetch comments");
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user