This commit is contained in:
Felix Ableitner 2024-09-25 13:23:15 +02:00
parent 99cdf742d4
commit 7390d75cdb
2 changed files with 5 additions and 2 deletions

View file

@ -48,7 +48,10 @@ pub async fn shared_inbox(
match res { match res {
// Ignore NotFound error, usually means that the sending actor was deleted and sent a delete // Ignore NotFound error, usually means that the sending actor was deleted and sent a delete
// activity: https://github.com/LemmyNet/lemmy/issues/2240 // activity: https://github.com/LemmyNet/lemmy/issues/2240
Ok(Err(LemmyError {error_type: LemmyErrorType::NotFound, ..})) => Ok(HttpResponse::Ok().finish()), Ok(Err(LemmyError {
error_type: LemmyErrorType::NotFound,
..
})) => Ok(HttpResponse::Ok().finish()),
// Top-level error means we hit the send timeout // Top-level error means we hit the send timeout
Err(_) => Err(LemmyErrorType::InboxTimeout.into()), Err(_) => Err(LemmyErrorType::InboxTimeout.into()),
Ok(other) => other, Ok(other) => other,

View file

@ -47,7 +47,7 @@ full = [
"dep:uuid", "dep:uuid",
"dep:itertools", "dep:itertools",
"dep:markdown-it", "dep:markdown-it",
"dep:activitypub_federation" "dep:activitypub_federation",
] ]
[dependencies] [dependencies]