diff --git a/.drone.yml b/.drone.yml index 11abb8dae..1e2b9b10a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,8 @@ steps: - name: cargo clippy image: ekidd/rust-musl-builder:1.47.0 commands: - - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings + - cargo clippy --workspace --tests --all-targets --all-features -- \ + -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro - name: check documentation build image: ekidd/rust-musl-builder:1.47.0 diff --git a/lemmy_apub/src/http/user.rs b/lemmy_apub/src/http/user.rs index 343f69cb8..3005b8b59 100644 --- a/lemmy_apub/src/http/user.rs +++ b/lemmy_apub/src/http/user.rs @@ -33,7 +33,7 @@ pub async fn get_apub_user_http( User_::find_by_email_or_username(conn, &user_name) }) .await??; - dbg!(&user.deleted); + if !user.deleted { let apub = user.to_apub(context.pool()).await?;