⚡️⚡️⚡️ 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 fix
daniel31x136d92ce64bd42
diff --git a/pages/api/v1/links/[id]/archive/index.ts b/pages/api/v1/links/[id]/archive/index.tsindex 2b9589b4..8ba4a612 100644--- a/pages/api/v1/links/[id]/archive/index.ts+++ b/pages/api/v1/links/[id]/archive/index.ts@@ -45,20 +45,6 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {"This action is disabled because this is a read-only demo of Linkwarden.",});- if (- link?.lastPreserved &&- getTimezoneDifferenceInMinutes(new Date(), link?.lastPreserved) <- RE_ARCHIVE_LIMIT- )- return res.status(400).json({- response: `This link is currently being saved or has already been preserved. Please retry in ${- RE_ARCHIVE_LIMIT -- Math.floor(- getTimezoneDifferenceInMinutes(new Date(), link?.lastPreserved)- )- } minutes or create a new one.`,- });-if (!link.url || !isValidUrl(link.url))return res.status(200).json({response: "Invalid URL.",@@ -74,6 +60,8 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {readable: null,monolith: null,preview: null,+ lastPreserved: null,+ indexVersion: null,},});diff --git a/pages/api/v1/links/archive/index.ts b/pages/api/v1/links/archive/index.tsindex 7e143f90..974e70b3 100644--- a/pages/api/v1/links/archive/index.ts+++ b/pages/api/v1/links/archive/index.ts@@ -79,6 +79,8 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {readable: null,monolith: null,preview: null,+ lastPreserved: null,+ indexVersion: null,},});}@@ -171,6 +173,8 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {link.monolith === "unavailable"? null: link.monolith,+ lastPreserved: null,+ indexVersion: null,},});}