Delete local object on fetch when receiving HTTP 410, split fetcher (fixes #1256) #154

Closed
nutomic wants to merge 2 commits from deletion-on-fetch into move_views_to_diesel
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 521cd55913 - Show all commits

View File

@ -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

View File

@ -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?;