diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-12-29 13:26:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-29 11:26:38 +0000 |
| commit | f7920bdc94d97a6a94477f49e145432607b94951 (patch) | |
| tree | 32003337bea676bfccb89f8ab349663e9b3c5750 /packages/shared/utils | |
| parent | 1082076133ff185980ba3d6b5a989939ed431e14 (diff) | |
| download | karakeep-f7920bdc94d97a6a94477f49e145432607b94951.tar.zst | |
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
Diffstat (limited to 'packages/shared/utils')
| -rw-r--r-- | packages/shared/utils/bookmarkUtils.ts | 10 |
1 files changed, 7 insertions, 3 deletions
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) { |
