diff --git a/Cargo.lock b/Cargo.lock index cea79b2..634e7a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1955,7 +1955,7 @@ dependencies = [ [[package]] name = "pict-rs" -version = "0.5.17-pre.4" +version = "0.5.17-pre.5" dependencies = [ "actix-form-data", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 50f1baa..487225d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pict-rs" description = "A simple image hosting service" -version = "0.5.17-pre.4" +version = "0.5.17-pre.5" authors = ["asonix "] license = "AGPL-3.0" readme = "README.md" diff --git a/pict-rs.nix b/pict-rs.nix index 0c80972..0ac7b01 100644 --- a/pict-rs.nix +++ b/pict-rs.nix @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage { pname = "pict-rs"; - version = "0.5.17-pre.4"; + version = "0.5.17-pre.5"; src = ./.; cargoLock = { diff --git a/releases/0.5.17-pre.5.md b/releases/0.5.17-pre.5.md new file mode 100644 index 0000000..a008177 --- /dev/null +++ b/releases/0.5.17-pre.5.md @@ -0,0 +1,14 @@ +# pict-rs 0.5.17-pre.5 + +pict-rs is a simple image hosting microservice, designed to handle storing and retrieving images, +animations, and videos, as well as providing basic image processing functionality. + +## Overview + +pict-rs 0.5.17-pre.5 fixes a bug in missing variant detection introduced in -pre.4 that made the +feature essentially do nothing. + +## Upgrade Notes + +There are no significant changes from 0.5.17-pre.4. Upgrading should be as simple as pulling a new +version of pict-rs. diff --git a/src/lib.rs b/src/lib.rs index 9e1d276..dc90e96 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -868,7 +868,7 @@ async fn existing_variant_identifier( if !exists(&state.store, &identifier).await? { let clean = if let Some(original_identifier) = state.repo.identifier(hash.clone()).await? { - !exists(&state.store, &original_identifier).await? + exists(&state.store, &original_identifier).await? } else { true };