From f7920bdc94d97a6a94477f49e145432607b94951 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Mon, 29 Dec 2025 13:26:38 +0200 Subject: fix: reset tagging status on crawl failure (#2316) * feat: add the ability to specify a different changelog version * fix: reset tagging status on crawl failure * fix missing crawlStatus in loadMulti --- packages/shared/utils/bookmarkUtils.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'packages/shared/utils/bookmarkUtils.ts') diff --git a/packages/shared/utils/bookmarkUtils.ts b/packages/shared/utils/bookmarkUtils.ts index 9d4659b1..c9587c6c 100644 --- a/packages/shared/utils/bookmarkUtils.ts +++ b/packages/shared/utils/bookmarkUtils.ts @@ -28,9 +28,13 @@ export function getBookmarkLinkImageUrl(bookmark: ZBookmarkedLink) { } export function isBookmarkStillCrawling(bookmark: ZBookmark) { - return ( - bookmark.content.type == BookmarkTypes.LINK && !bookmark.content.crawledAt - ); + if (bookmark.content.type != BookmarkTypes.LINK) { + return false; + } + if (bookmark.content.crawlStatus) { + return bookmark.content.crawlStatus === "pending"; + } + return !bookmark.content.crawledAt; } export function isBookmarkStillTagging(bookmark: ZBookmark) { -- cgit v1.2.3-70-g09d2