Skip to content

Commit

Permalink
Merge branch 'revert-#898' of github.com:WordPress/openverse into rev…
Browse files Browse the repository at this point in the history
…ert-#898
  • Loading branch information
zackkrida committed Apr 18, 2023
2 parents 1102e12 + 0b73e0d commit f3a6972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/catalog/api/views/image_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def thumbnail(self, request, *_, **__):
image_url = image.url
# Hotfix to use thumbnails for SMK images
# TODO: Remove when small thumbnail issues are resolved
if "iip.smk.dk" in image_url:
if "iip.smk.dk" in image_url and image.thumbnail:
image_url = image.thumbnail

return super().thumbnail(image_url, request)
Expand Down

0 comments on commit f3a6972

Please sign in to comment.