⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
bug fixed
daniel31x1383db594fde6e
diff --git a/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx b/apps/web/components/LinkViews/LinkComponents/LinkActions.tsxindex 05d29ad0..bbc28edc 100644--- a/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx+++ b/apps/web/components/LinkViews/LinkComponents/LinkActions.tsx@@ -36,7 +36,7 @@ export default function LinkActions({const isPublicRoute = router.pathname.startsWith("/public") ? true : false;- const getLink = useGetLink();+ const getLink = useGetLink(isPublicRoute);const pinLink = usePinLink();diff --git a/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx b/apps/web/components/LinkViews/LinkComponents/LinkCard.tsxindex f6384dd3..91ac3233 100644--- a/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx+++ b/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx@@ -71,7 +71,7 @@ export default function LinkCard({ link, columns, editMode }: Props) {const router = useRouter();const isPublicRoute = router.pathname.startsWith("/public") ? true : false;- const getLink = useGetLink();+ const getLink = useGetLink(isPublicRoute);useEffect(() => {if (!editMode) {@@ -131,7 +131,6 @@ export default function LinkCard({ link, columns, editMode }: Props) {interval = setInterval(async () => {getLink.mutateAsync({id: link.id as number,- isPublicRoute: isPublicRoute,});}, 5000);}diff --git a/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx b/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsxindex de6aad80..d7dc35f0 100644--- a/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx+++ b/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx@@ -71,7 +71,7 @@ export default function LinkMasonry({ link, editMode, columns }: Props) {let isPublic = router.pathname.startsWith("/public") ? true : undefined;- const getLink = useGetLink();+ const getLink = useGetLink(isPublic);useEffect(() => {if (!editMode) {diff --git a/apps/web/components/Preservation/PreservationPageContent.tsx b/apps/web/components/Preservation/PreservationPageContent.tsxindex 77ed048a..6f04bde8 100644--- a/apps/web/components/Preservation/PreservationPageContent.tsx+++ b/apps/web/components/Preservation/PreservationPageContent.tsx@@ -17,7 +17,6 @@ export default function PreservationPageContent() {useEffect(() => {fetchLink({id: Number(router.query.id),- isPublicRoute,});let interval: NodeJS.Timeout | null = null;