Ignore errors when importing activities from outbox

This commit is contained in:
silverpill 2023-04-12 23:27:34 +00:00 committed by Rafael Caricio
parent 69caf0b5bc
commit a3f44cf678
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947
2 changed files with 11 additions and 1 deletions

View file

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Changed
- Ignore errors when importing activities from outbox.
## [1.21.0] - 2023-04-12
### Added

View file

@ -324,7 +324,13 @@ pub async fn import_from_outbox(
db_client,
&activity,
true, // is authenticated
).await?;
).await.unwrap_or_else(|error| {
log::warn!(
"failed to process activity ({}): {}",
error,
activity,
);
});
};
Ok(())
}