aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/exportBookmarks.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-05-24 10:31:53 +0100
committerMohamedBassem <me@mbassem.com>2025-05-24 10:31:53 +0100
commitc6d21afa17775270bb8e65dd1b6df09023147f01 (patch)
treee305a3cafcf0a2796db2c8d22da7950e353343f6 /apps/web/lib/exportBookmarks.ts
parent6af14e9d0ab76ad2a1b92e0072d8242129910d3e (diff)
downloadkarakeep-c6d21afa17775270bb8e65dd1b6df09023147f01.tar.zst
feat: Read the archive status from omnivore and pocket. Fixes #703
Diffstat (limited to 'apps/web/lib/exportBookmarks.ts')
-rw-r--r--apps/web/lib/exportBookmarks.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/lib/exportBookmarks.ts b/apps/web/lib/exportBookmarks.ts
index 67b0b5da..5dc26e78 100644
--- a/apps/web/lib/exportBookmarks.ts
+++ b/apps/web/lib/exportBookmarks.ts
@@ -19,6 +19,7 @@ export const zExportBookmarkSchema = z.object({
])
.nullable(),
note: z.string().nullable(),
+ archived: z.boolean().optional().default(false),
});
export const zExportSchema = z.object({
@@ -56,6 +57,7 @@ export function toExportFormat(
tags: bookmark.tags.map((t) => t.name),
content,
note: bookmark.note ?? null,
+ archived: bookmark.archived,
};
}