memories: deny Snapchat-prefixed filenames from timestamp parsing #81

Merged
cameron merged 1 commits from feature/filename-date-snapchat-denylist into master 2026-05-07 16:20:08 +00:00
Owner

Snapchat assigns sequential IDs that happen to overlap real epoch
values, so the 10-16 digit timestamp regex matched and produced
2002-era dates for files actually saved in 2016/2021. The digits
themselves are indistinguishable from a unix timestamp, so we
dispatch on the source-app prefix instead. Case-insensitive,
extensible for future apps that exhibit the same pattern.

Reported cases:
Snapchat-1021849065.mp4 → 2002-05-19 (actual 2021)
Snapchat-1751031586660373917.jpg → 2002-09-09 (actual 2016)

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

Snapchat assigns sequential IDs that happen to overlap real epoch values, so the 10-16 digit timestamp regex matched and produced 2002-era dates for files actually saved in 2016/2021. The digits themselves are indistinguishable from a unix timestamp, so we dispatch on the source-app prefix instead. Case-insensitive, extensible for future apps that exhibit the same pattern. Reported cases: Snapchat-1021849065.mp4 → 2002-05-19 (actual 2021) Snapchat-1751031586660373917.jpg → 2002-09-09 (actual 2016) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cameron added 1 commit 2026-05-07 16:20:02 +00:00
Snapchat assigns sequential IDs that happen to overlap real epoch
values, so the 10-16 digit timestamp regex matched and produced
2002-era dates for files actually saved in 2016/2021. The digits
themselves are indistinguishable from a unix timestamp, so we
dispatch on the source-app prefix instead. Case-insensitive,
extensible for future apps that exhibit the same pattern.

Reported cases:
  Snapchat-1021849065.mp4          → 2002-05-19 (actual 2021)
  Snapchat-1751031586660373917.jpg → 2002-09-09 (actual 2016)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cameron merged commit ac8d17fb22 into master 2026-05-07 16:20:07 +00:00
cameron deleted branch feature/filename-date-snapchat-denylist 2026-05-07 16:20:08 +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#81