Ignore errors when importing activities from outbox
This commit is contained in:
parent
69caf0b5bc
commit
a3f44cf678
2 changed files with 11 additions and 1 deletions
|
@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Ignore errors when importing activities from outbox.
|
||||||
|
|
||||||
## [1.21.0] - 2023-04-12
|
## [1.21.0] - 2023-04-12
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -324,7 +324,13 @@ pub async fn import_from_outbox(
|
||||||
db_client,
|
db_client,
|
||||||
&activity,
|
&activity,
|
||||||
true, // is authenticated
|
true, // is authenticated
|
||||||
).await?;
|
).await.unwrap_or_else(|error| {
|
||||||
|
log::warn!(
|
||||||
|
"failed to process activity ({}): {}",
|
||||||
|
error,
|
||||||
|
activity,
|
||||||
|
);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue