From e299c6d2af75d53ac390c4aae0b50d341d36d9a4 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 18 Apr 2025 15:36:07 -0500 Subject: [PATCH] Make untitled photo meta consistent --- src/photo/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/photo/index.ts b/src/photo/index.ts index 64dceac8..94bb6162 100644 --- a/src/photo/index.ts +++ b/src/photo/index.ts @@ -209,7 +209,7 @@ export const translatePhotoId = (id: string) => export const titleForPhoto = ( photo: Photo, - preferDateOverUntitled?: boolean, + preferDateOverUntitled = true, ) => { if (photo.title) { return photo.title; @@ -217,7 +217,7 @@ export const titleForPhoto = ( return formatDate({ date: photo.takenAt || photo.createdAt, length: 'tiny', - }); + }).toLocaleUpperCase(); } else { return 'Untitled'; }