From 3dda6789c22dee015953902b8bed5b6b73325053 Mon Sep 17 00:00:00 2001 From: Lalle <29478339+LalleSX@users.noreply.github.com> Date: Wed, 22 Mar 2023 04:54:47 +0100 Subject: [PATCH] local ref --- src/Site/Catalog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Site/Catalog.tsx b/src/Site/Catalog.tsx index 7039b73..07aa7f9 100644 --- a/src/Site/Catalog.tsx +++ b/src/Site/Catalog.tsx @@ -31,7 +31,8 @@ const fetchCatalog = async (boardID: string): Promise => { // Creates the json index for the catalog. const createThreadElement = (thread: Thread, boardID: string,) => { const { no, images, com, sub, tim, ext, tn_h, tn_w } = thread; - const threadURL = `https://boards.4channel.org/${boardID}/thread/${no}`; + //const threadURL = `https://boards.4channel.org/${boardID}/thread/${no}`; + const localURL = `/${boardID}/thread/${no}`; // if ext is .webm or gif, show the thumbnail instead. let imgSrc; if (ext === '.webm' || ext === '.gif') { @@ -42,7 +43,7 @@ const createThreadElement = (thread: Thread, boardID: string,) => { const ratio = 150 / Math.max(tn_w, tn_h); return (
- + {`Thumbnail