From 1431cd2fbc48a3e3a8b5fa310b0aebff36b632cc Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Tue, 24 Mar 2026 12:51:42 -0400 Subject: [PATCH] fixed deduplication once again. for real this time I think --- src/routes/artists.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/artists.rs b/src/routes/artists.rs index 7d38e22..67534be 100644 --- a/src/routes/artists.rs +++ b/src/routes/artists.rs @@ -807,11 +807,13 @@ async fn add_artist( if body.name.is_none() && body.mbid.is_none() { return Err(ApiError::BadRequest("provide name or mbid".into())); } + let allowed = state.config.read().await.allowed_secondary_types.clone(); let summary = shanty_watch::add_artist( state.db.conn(), body.name.as_deref(), body.mbid.as_deref(), &state.mb_client, + &allowed, Some(user_id), ) .await?;