feat(domain): FederationActionPort trait + avatar_url on RemoteActor

This commit is contained in:
2026-05-14 19:55:10 +02:00
parent 8eb59bfac6
commit 82f8772104
6 changed files with 54 additions and 1 deletions

View File

@@ -28,6 +28,9 @@ impl IntoResponse for ApiError {
Self::Domain(DomainError::Forbidden) => (StatusCode::FORBIDDEN, "forbidden".into()),
Self::Domain(DomainError::Conflict(m)) => (StatusCode::CONFLICT, m),
Self::Domain(DomainError::InvalidInput(m)) => (StatusCode::UNPROCESSABLE_ENTITY, m),
Self::Domain(DomainError::ExternalService(_)) => {
(StatusCode::BAD_GATEWAY, "external service error".into())
}
Self::Domain(DomainError::Internal(_)) => (
StatusCode::INTERNAL_SERVER_ERROR,
"internal server error".into(),