Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor fix

daniel31x136599fd7f5ae0
diff --git a/pages/api/v1/highlights/[id].ts b/pages/api/v1/highlights/[id].ts
index a37b4f83..9acc593e 100644
--- a/pages/api/v1/highlights/[id].ts
+++ b/pages/api/v1/highlights/[id].ts
@@ -10,6 +10,12 @@ export default async function highlights(
if (!user) return;
if (req.method === "DELETE") {
+ if (process.env.NEXT_PUBLIC_DEMO === "true")
+ return res.status(400).json({
+ response:
+ "This action is disabled because this is a read-only demo of Linkwarden.",
+ });
+
const highlights = await deleteHighlightById(
user.id,
Number(req.query.id as string)