aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/components/dashboard/UploadDropzone.tsx8
-rw-r--r--apps/web/lib/hooks/useBookmarkImport.ts1
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsx
index 2bac005e..8d119467 100644
--- a/apps/web/components/dashboard/UploadDropzone.tsx
+++ b/apps/web/components/dashboard/UploadDropzone.tsx
@@ -34,7 +34,12 @@ export function useUploadAsset() {
onSuccess: async (resp) => {
const assetType =
resp.contentType === "application/pdf" ? "pdf" : "image";
- await createBookmark({ ...resp, type: BookmarkTypes.ASSET, assetType });
+ await createBookmark({
+ ...resp,
+ type: BookmarkTypes.ASSET,
+ assetType,
+ source: "web",
+ });
},
onError: (err, req) => {
toast({
@@ -54,6 +59,7 @@ export function useUploadAsset() {
type: BookmarkTypes.TEXT,
text: content,
title: file.name.replace(/\.md$/i, ""), // Remove .md extension from title
+ source: "web",
});
} catch {
toast({
diff --git a/apps/web/lib/hooks/useBookmarkImport.ts b/apps/web/lib/hooks/useBookmarkImport.ts
index a4ebdd9c..d4ffda4e 100644
--- a/apps/web/lib/hooks/useBookmarkImport.ts
+++ b/apps/web/lib/hooks/useBookmarkImport.ts
@@ -75,6 +75,7 @@ export function useBookmarkImport() {
note: bookmark.notes,
archived: bookmark.archived,
importSessionId: sessionId,
+ source: "import",
...(bookmark.content.type === BookmarkTypes.LINK
? {
type: BookmarkTypes.LINK,