diff options
| author | kamtschatka <simon.schatka@gmx.at> | 2024-06-22 18:52:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 17:52:40 +0100 |
| commit | be1b7f7e1c0cb3d905e13aa1a95e295b816cbdeb (patch) | |
| tree | 6a0556a1bfd4fee1a10c99f88bd39a316107b631 /packages/trpc | |
| parent | ccfff6b1954030a273b0612f3772ec00a82422c8 (diff) | |
| download | karakeep-be1b7f7e1c0cb3d905e13aa1a95e295b816cbdeb.tar.zst | |
feature: add support for PDF links. Fixes #28 (#216)
* feature request: pdf support #28
Added a new sourceUrl column to the asset bookmarks
Added transforming a link bookmark pointing at a pdf to an asset bookmark
made sure the "View Original" link is also shown for asset bookmarks that have a sourceURL
updated gitignore for IDEA
* remove pdf parsing from the crawler
* extract the http logic into its own function to avoid duplicating the post-processing actions (openai/index)
* Add 5s timeout to the content type fetch
---------
Co-authored-by: MohamedBassem <me@mbassem.com>
Diffstat (limited to 'packages/trpc')
| -rw-r--r-- | packages/trpc/routers/bookmarks.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.ts index 57463177..e083f83c 100644 --- a/packages/trpc/routers/bookmarks.ts +++ b/packages/trpc/routers/bookmarks.ts @@ -172,6 +172,7 @@ function toZodSchema(bookmark: BookmarkQueryReturnType): ZBookmark { assetType: asset.assetType, assetId: asset.assetId, fileName: asset.fileName, + sourceUrl: asset.sourceUrl, }; } else { content = { type: "unknown" }; @@ -257,6 +258,7 @@ export const bookmarksAppRouter = router({ content: null, metadata: null, fileName: input.fileName ?? null, + sourceUrl: null, }) .returning(); content = { |
