⚡️⚡️⚡️ 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
minor fix
daniel31x1356741b123b80
diff --git a/components/Preservation.tsx b/components/Preservation.tsxindex 59856d9e..759007ff 100644--- a/components/Preservation.tsx+++ b/components/Preservation.tsx@@ -5,10 +5,6 @@ import { useTranslation } from "next-i18next";import ReadableView from "@/components/ReadableView";import { useGetLink } from "@/hooks/store/links";import clsx from "clsx";-import Link from "next/link";-import unescapeString from "@/lib/client/unescapeString";-import isValidUrl from "@/lib/shared/isValidUrl";-import LinkDate from "./LinkViews/LinkComponents/LinkDate";import { formatAvailable } from "@/lib/shared/formatStats";export default function Preservation() {diff --git a/components/ReadableView.tsx b/components/ReadableView.tsxindex 5e00cf24..6b63149c 100644--- a/components/ReadableView.tsx+++ b/components/ReadableView.tsx@@ -12,6 +12,7 @@ import LinkDate from "./LinkViews/LinkComponents/LinkDate";import isValidUrl from "@/lib/shared/isValidUrl";import Link from "next/link";import unescapeString from "@/lib/client/unescapeString";+import usePermissions from "@/hooks/usePermissions";type LinkContent = {title: string;@@ -51,6 +52,10 @@ export default function ReadableView({ link }: Props) {fetchLinkContent();}, [link]);+ const isPublicRoute = router.pathname.startsWith("/public");++ const permissions = usePermissions(link?.collection?.id as number);+return (<div className="flex flex-col gap-3 items-start p-3"><div className="flex gap-3 items-start">@@ -78,7 +83,7 @@ export default function ReadableView({ link }: Props) {{link?.readable?.startsWith("archives") ? (<divclassName={clsx(- "px-3 rounded-md",+ "px-3 rounded-md w-full",linkContent?.content && "bg-base-200")}>@@ -86,7 +91,7 @@ export default function ReadableView({ link }: Props) {<divclassName="line-break px-1 reader-view"dangerouslySetInnerHTML={{- __html: DOMPurify.sanitize(linkContent?.content || "") || "",+ __html: DOMPurify.sanitize(linkContent?.content) || "",}}></div>) : (