From be1b7f7e1c0cb3d905e13aa1a95e295b816cbdeb Mon Sep 17 00:00:00 2001
From: kamtschatka <simon.schatka@gmx.at>
Date: Sat, 22 Jun 2024 18:52:40 +0200
Subject: 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>
---
 packages/db/drizzle/0023_late_night_nurse.sql | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 packages/db/drizzle/0023_late_night_nurse.sql

(limited to 'packages/db/drizzle/0023_late_night_nurse.sql')

diff --git a/packages/db/drizzle/0023_late_night_nurse.sql b/packages/db/drizzle/0023_late_night_nurse.sql
new file mode 100644
index 00000000..6740f4e5
--- /dev/null
+++ b/packages/db/drizzle/0023_late_night_nurse.sql
@@ -0,0 +1 @@
+ALTER TABLE bookmarkAssets ADD `sourceUrl` text;
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

