Don't ignore Delete(Person) verification errors if database error subtype is not NotFound

This commit is contained in:
silverpill 2023-01-11 00:51:03 +00:00
parent 4c97246e3f
commit 7247441693
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `/api/v1/accounts/move_followers` API endpoint. - `/api/v1/accounts/move_followers` API endpoint.
### Fixed
- Don't ignore `Delete(Person)` verification errors if database error subtype is not `NotFound`.
## [1.9.0] - 2023-01-08 ## [1.9.0] - 2023-01-08
### Added ### Added

View file

@ -253,7 +253,7 @@ pub async fn receive_activity(
if is_self_delete && matches!( if is_self_delete && matches!(
error, error,
AuthenticationError::NoHttpSignature | AuthenticationError::NoHttpSignature |
AuthenticationError::DatabaseError(_) AuthenticationError::DatabaseError(DatabaseError::NotFound(_))
) { ) {
// Ignore Delete(Person) activities without HTTP signatures // Ignore Delete(Person) activities without HTTP signatures
// or if signer is not found in local database // or if signer is not found in local database