mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Fix: show modified date instead of creating date in file list
This commit is contained in:
@@ -340,7 +340,7 @@ func (fs *FileSystem) listObjects(ctx context.Context, parent string, files []mo
|
|||||||
Pic: "",
|
Pic: "",
|
||||||
Size: 0,
|
Size: 0,
|
||||||
Type: "dir",
|
Type: "dir",
|
||||||
Date: subFolder.CreatedAt,
|
Date: subFolder.UpdatedAt,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,7 +361,7 @@ func (fs *FileSystem) listObjects(ctx context.Context, parent string, files []mo
|
|||||||
Pic: file.PicInfo,
|
Pic: file.PicInfo,
|
||||||
Size: file.Size,
|
Size: file.Size,
|
||||||
Type: "file",
|
Type: "file",
|
||||||
Date: file.CreatedAt,
|
Date: file.UpdatedAt,
|
||||||
SourceEnabled: file.GetPolicy().IsOriginLinkEnable,
|
SourceEnabled: file.GetPolicy().IsOriginLinkEnable,
|
||||||
}
|
}
|
||||||
if shareKey != "" {
|
if shareKey != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user