Skip to content

Commit

Permalink
Fix collection thumbnail fallback logic in Hyrax::ThumbnailPathServic…
Browse files Browse the repository at this point in the history
…eDecorator
  • Loading branch information
ShanaLMoore committed Nov 14, 2024
1 parent 7a02033 commit 771c95f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/services/hyrax/thumbnail_path_service_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 771c95f

Please sign in to comment.