diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d88779..abdfeb77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Fixed -- Some types of imports were not being detected correctly and were failing to import. +- Some types of imports were not being detected correctly and were failing to import. #1678 # [0.30.10] - 2025-08-22 diff --git a/app/services/photos/thumbnail.rb b/app/services/photos/thumbnail.rb index ad2da385..c7046a2d 100644 --- a/app/services/photos/thumbnail.rb +++ b/app/services/photos/thumbnail.rb @@ -52,7 +52,7 @@ class Photos::Thumbnail request_headers end - unsupported_source_error unless SUPPORTED_SOURCES.include?(source) + def unsupported_source_error raise ArgumentError, "Unsupported source: #{source}" end end