From d084fddc555f101a98df03ba70e5326c513d1f05 Mon Sep 17 00:00:00 2001 From: Cristian Scheid Date: Fri, 27 Feb 2026 16:25:37 -0300 Subject: [PATCH] refactor(recent-search): use d:creationdate instead of c:creation_time and crtime instead of attributes.upload_time Signed-off-by: Cristian Scheid --- .../src/components/FileEntry/FileEntryPreview.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/files/src/components/FileEntry/FileEntryPreview.vue b/apps/files/src/components/FileEntry/FileEntryPreview.vue index d34f7e38229..25e5f5b088d 100644 --- a/apps/files/src/components/FileEntry/FileEntryPreview.vue +++ b/apps/files/src/components/FileEntry/FileEntryPreview.vue @@ -134,22 +134,14 @@ export default defineComponent({ }, isRecentlyCreated(): boolean { - if (this.source.attributes.upload_time) { - return false - } - - const creationDate = this.source.attributes.creationdate - ? new Date(this.source.attributes.creationdate) - : null - - if (!creationDate) { + if (!this.source.crtime) { return false } const oneDayAgo = new Date() oneDayAgo.setDate(oneDayAgo.getDate() - 1) - return creationDate > oneDayAgo + return this.source.crtime > oneDayAgo }, isRecentView(): boolean {