Skip to content

Commit

Permalink
Skip images with unsupported content type
Browse files Browse the repository at this point in the history
  • Loading branch information
xSke committed Feb 14, 2024
1 parent cf632f8 commit 4c7902d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub async fn handle_item(state: &AppState) -> Result<(), PKAvatarError> {
e @ (PKAvatarError::ImageDimensionsTooLarge(_, _)
| PKAvatarError::UnknownImageFormat
| PKAvatarError::UnsupportedImageFormat(_)
| PKAvatarError::UnsupportedContentType(_)
| PKAvatarError::ImageFileSizeTooLarge(_, _)
| PKAvatarError::InvalidCdnUrl
| PKAvatarError::BadCdnResponse(StatusCode::NOT_FOUND | StatusCode::FORBIDDEN)),
Expand Down

0 comments on commit 4c7902d

Please sign in to comment.