fix: answer deletions with 200

This commit is contained in:
əlemi 2024-05-01 18:43:43 +02:00
parent bb4f6e9df0
commit 84a446b494
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -136,7 +136,7 @@ where
// exist anymore, so it must be a deletion we can ignore
if let UpubError::Reqwest(ref x) = e {
if let Some(StatusCode::GONE) = x.status() {
return Err(UpubError::not_modified());
return Err(UpubError::Status(StatusCode::OK)); // 200 so mastodon will shut uppp
}
}
tracing::warn!("could not fetch user (won't verify): {e}");