diff --git a/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs b/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs index 8ff9e9f3..d01a6d7b 100644 --- a/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs +++ b/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs @@ -146,7 +146,7 @@ public class StorageMaintenanceService( public async Task FixupMedia(bool dryRun) { - var query = db.DriveFiles.Where(p => !p.IsLink && p.Uri != null); + var query = db.DriveFiles.Where(p => !p.IsLink && p.Uri != null && p.CreatedAt < DateTime.UtcNow); var total = await query.CountAsync(); var progress = 0; var modified = 0;