Add local source ingest and podcasts

This commit is contained in:
Krishna Kumar
2026-07-02 01:11:03 -05:00
parent 4d875e12d6
commit f8693f4be0
18 changed files with 1044 additions and 31 deletions

View File

@@ -128,8 +128,16 @@ final class BookmarksViewModel {
isLoading = false
}
func addBookmark(url: String, title: String, tags: [String]) async throws {
let create = BookmarkCreate(url: url, title: title, tagNames: tags, isArchived: false, unread: false, shared: false)
func addBookmark(url: String, title: String, description: String = "", tags: [String]) async throws {
let create = BookmarkCreate(
url: url,
title: title,
description: description,
tagNames: tags,
isArchived: false,
unread: false,
shared: false
)
let bookmark = try await api.createBookmark(create)
bookmarks.insert(bookmark, at: 0)
Task { await SpotlightIndexer.index([bookmark]) }