refactor(recent-search): use d:creationdate instead of c:creation_time and crtime instead of attributes.upload_time

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
This commit is contained in:
Cristian Scheid 2026-02-27 16:25:37 -03:00
parent 3f2edb324b
commit d084fddc55

View file

@ -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 {