memories: restore early-era Snapchat unix-epoch filenames #84

Merged
cameron merged 1 commits from feature/snapchat-early-era-dates into master 2026-05-08 20:23:35 +00:00
Owner

The recent blanket "snapchat-" prefix denylist (43f8f83) rejected ALL
Snapchat-prefixed filenames from timestamp parsing, which fixed the
sequential-ID false positives but also broke real unix-second
filenames from Snapchat's early era. Snapchat-1383929602.jpg
(2013-11-08 16:53:22 UTC) now falls through to fs_time — and on files
with broken filesystem metadata, fs_time pins to 1970.

Replace the blanket prefix denial with a tighter discriminator:

  • exactly 10 captured digits AND timestamp >= 2011-09-23 (Snapchat
    launch) → real unix epoch, accept
  • any other length under this prefix → sequential ID, reject

This keeps the existing rejections intact:
Snapchat-1021849065.mp4 → 10 digits, 2002 < launch → reject
Snapchat-1751031586660373917.jpg → 19 digits truncates to 16 → reject
And restores the regression case:
Snapchat-1383929602.jpg → 10 digits, 2013 ≥ launch → accept

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

The recent blanket "snapchat-" prefix denylist (43f8f83) rejected ALL Snapchat-prefixed filenames from timestamp parsing, which fixed the sequential-ID false positives but also broke real unix-second filenames from Snapchat's early era. `Snapchat-1383929602.jpg` (2013-11-08 16:53:22 UTC) now falls through to fs_time — and on files with broken filesystem metadata, fs_time pins to 1970. Replace the blanket prefix denial with a tighter discriminator: - exactly 10 captured digits AND timestamp >= 2011-09-23 (Snapchat launch) → real unix epoch, accept - any other length under this prefix → sequential ID, reject This keeps the existing rejections intact: Snapchat-1021849065.mp4 → 10 digits, 2002 < launch → reject Snapchat-1751031586660373917.jpg → 19 digits truncates to 16 → reject And restores the regression case: Snapchat-1383929602.jpg → 10 digits, 2013 ≥ launch → accept Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cameron added 1 commit 2026-05-08 20:23:30 +00:00
The recent blanket "snapchat-" prefix denylist (43f8f83) rejected ALL
Snapchat-prefixed filenames from timestamp parsing, which fixed the
sequential-ID false positives but also broke real unix-second
filenames from Snapchat's early era. `Snapchat-1383929602.jpg`
(2013-11-08 16:53:22 UTC) now falls through to fs_time — and on files
with broken filesystem metadata, fs_time pins to 1970.

Replace the blanket prefix denial with a tighter discriminator:
  - exactly 10 captured digits AND timestamp >= 2011-09-23 (Snapchat
    launch) → real unix epoch, accept
  - any other length under this prefix → sequential ID, reject

This keeps the existing rejections intact:
  Snapchat-1021849065.mp4          → 10 digits, 2002 < launch → reject
  Snapchat-1751031586660373917.jpg → 19 digits truncates to 16 → reject
And restores the regression case:
  Snapchat-1383929602.jpg          → 10 digits, 2013 ≥ launch → accept

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cameron merged commit c52a646be2 into master 2026-05-08 20:23:35 +00:00
cameron deleted branch feature/snapchat-early-era-dates 2026-05-08 20:23:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Apps/ImageApi#84