Don't ignore Delete(Person) verification errors if database error subtype is not NotFound
This commit is contained in:
parent
4c97246e3f
commit
7247441693
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue