From 771c95fba62ae5143ad2eb4f2b531880013e8de0 Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Thu, 14 Nov 2024 08:50:30 -0800 Subject: [PATCH] Fix collection thumbnail fallback logic in Hyrax::ThumbnailPathServiceDecorator --- app/services/hyrax/thumbnail_path_service_decorator.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/services/hyrax/thumbnail_path_service_decorator.rb b/app/services/hyrax/thumbnail_path_service_decorator.rb index 43e43329f..d64447aa0 100644 --- a/app/services/hyrax/thumbnail_path_service_decorator.rb +++ b/app/services/hyrax/thumbnail_path_service_decorator.rb @@ -7,7 +7,6 @@ module ThumbnailPathServiceDecorator def call(object) return super unless object.try(:collection?) - # Check if a collection-specific branding thumbnail exists collection_thumbnail = CollectionBrandingInfo.where(collection_id: object.id.to_s, role: "thumbnail").first return collection_thumbnail.local_path.gsub(Hyrax.config.branding_path.to_s, '/branding') if collection_thumbnail