Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Ignore errors when importing activities from outbox
Browse files Browse the repository at this point in the history
  • Loading branch information
silverpill authored and rafaelcaricio committed Apr 24, 2023
1 parent 69caf0b commit a3f44cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion src/activitypub/fetcher/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit a3f44cf

Please sign in to comment.