Photo: drop fileSize, exif() throws without a content cache
check / check (push) Successful in 1m58s

Remove fileSize from Photo, PhotoRecord, README and TODO.md: the server's
value is the size of the encrypted file, not the original's.

exif() now checks for the content cache before it returns {} for a video,
so it throws like original(), thumbnail() and content() when the library
has no content source. README names the methods that also serve an
original from the backup, since thumbnail() does not.

New tests: exif() on a JPEG whose EXIF block cannot be parsed returns {},
and exif() on a video throws without a content source.

Model: opus-5-5
This commit is contained in:
2026-10-01 15:23:05 +00:00
parent e7f75685e5
commit ead27ff419
7 changed files with 42 additions and 18 deletions
-1
View File
@@ -160,7 +160,6 @@ describe("deriveRecords: photo mapping", () => {
expect("height" in rec).toBe(false);
expect("latitude" in rec).toBe(false);
expect("hash" in rec).toBe(false);
expect("fileSize" in rec).toBe(false);
});
it("reads archived and hidden from private magicMetadata.visibility", () => {