From 95008f9815c069fab9eb0b15da52bc4965b6a1c8 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 24 Mar 2025 00:04:38 +0100 Subject: [PATCH] Fixed summary editor mockup not having a release date, resulting in no date showing unless fallback is explicitly enabled. --- pages/users/@username/+Page.vue | 6 +++++- static | 2 +- utils/process-summary-template.js | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/users/@username/+Page.vue b/pages/users/@username/+Page.vue index c772a71..31552ac 100644 --- a/pages/users/@username/+Page.vue +++ b/pages/users/@username/+Page.vue @@ -87,10 +87,14 @@ const domain = pageContext.routeParams.domain; const user = pageContext.user; const profile = ref(pageContext.pageProps.profile); +const now = new Date(); + const mockupRelease = { id: 1, title: 'Nut For Human Consumption', - effectiveDate: new Date(), + date: now, + effectiveDate: now, + createdAt: new Date(2024, 0, 1), actors: [ { name: 'Chanel Chakra', diff --git a/static b/static index aeef9c5..75b0bfa 160000 --- a/static +++ b/static @@ -1 +1 @@ -Subproject commit aeef9c536d4b821f0d20260624e7024060f2f2b0 +Subproject commit 75b0bfabb314627472f24310557c7f2c31d109b1 diff --git a/utils/process-summary-template.js b/utils/process-summary-template.js index 17524bc..fc1149c 100644 --- a/utils/process-summary-template.js +++ b/utils/process-summary-template.js @@ -53,6 +53,7 @@ const propProcessors = { return null; }, + createdAt: (sceneInfo, options) => format(sceneInfo.createdAt, options.format || 'yyyy-MM-dd'), }; function curateValue(value, item) {