mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Use mtime for ts in delete_all_remote_media_at_after_time().
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
e78bf21085
commit
f9f00d83fc
1 file changed
+1
-5
@@ -269,12 +269,8 @@ impl Service {
|
||||
|
||||
trace!(%mxc, ?path, "File metadata: {file_metadata:?}");
|
||||
|
||||
let file_created_at = match file_metadata.created() {
|
||||
let file_created_at = match file_metadata.modified() {
|
||||
| Ok(value) => value,
|
||||
| Err(err) if err.kind() == std::io::ErrorKind::Unsupported => {
|
||||
debug!("btime is unsupported, using mtime instead");
|
||||
file_metadata.modified()?
|
||||
},
|
||||
| Err(err) => {
|
||||
error!("Could not delete MXC {mxc} at path {path:?}: {err:?}. Skipping...");
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user