optimizations

This commit is contained in:
2026-03-28 19:15:39 +01:00
parent 0b25d9570a
commit cab4fbd83e
509 changed files with 1016804 additions and 1605 deletions

View File

@@ -174,7 +174,11 @@ final class UploadPipelineService
public function originalHashExists(string $hash): bool
{
return $this->storage->originalHashExists($hash);
return Artwork::query()
->where('hash', $hash)
->where('artwork_status', 'published')
->whereNotNull('published_at')
->exists();
}
private function quarantine(UploadSessionData $session, string $reason): void