Add Image OCR search, Note Version History & Shared Notebooks

This commit is contained in:
chrisf committed 2026-10-22 22:48:36 -06:00
1 parent 247b63691a
commit 969b6ef083
21 files changed
+2166 -100

No files matched your search

+6
View File
@@ -9,6 +9,7 @@ import {
makeExcerpt,
guessExtensionFromMime,
} from './storage';
import { enqueueAttachmentOcr } from './ocr';
export function parseEvernoteTimestamp(ts?: string | null): Date | null {
if (!ts) return null;
@@ -212,6 +213,10 @@ export async function saveParsedEnexNote(
},
});
if (!savedBlob.extractedText) {
enqueueAttachmentOcr(attachment.id);
}
mediaByHash.set(savedBlob.md5Hash.toLowerCase(), {
id: attachment.id,
filename: attachment.filename,
@@ -651,6 +656,7 @@ export async function localizeClippedImages(
storagePath: savedBlob.storagePath,
},
});
enqueueAttachmentOcr(att.id);
urlToLocalSrc.set(remoteUrl, `/api/attachments/${att.id}`);
} catch {
// Keep remote URL if download fails