Refactor duplicated patterns into shared helpers

This commit is contained in:
Alan Grainger
2026-06-05 12:46:28 +12:00
parent c1b58011aa
commit cefe2e81ff
7 changed files with 294 additions and 110 deletions
+6
View File
@@ -146,6 +146,12 @@ function applyDescriptionSplitShim (config: Config): void {
* users - which is the safer privacy default and matches the policy the
* new design is establishing.
*/
// These lists are frozen at v2.3.0 and intentionally do NOT track the
// current field set. The server's source-of-truth rules table lives in
// `gallery/exif.ts`, and the sidebar's UI placement lives in
// `client/sidebar.ts`. New fields added in future versions deliberately
// won't auto-appear for legacy `enabled: true` users via this shim - they
// should opt in explicitly.
const LEGACY_EXIF_FIELDS = [
'dateTimeOriginal', 'fileName', 'dimensions', 'fileSize',
'make', 'model', 'lensModel', 'exposureTime', 'iso',