diff --git a/app/helpers/collections_helper.rb b/app/helpers/collections_helper.rb index 27a9424984..d1c8af1983 100644 --- a/app/helpers/collections_helper.rb +++ b/app/helpers/collections_helper.rb @@ -128,7 +128,7 @@ def collection_item_approval_options(actor:, item_type:) def standard_icon_url(collection) return "/images/skins/iconsets/default/icon_collection.png" unless collection.icon.attached? - collection.icon.variant(:standard).processed.url + rails_blob_url(collection.icon.variant(:standard)) end # Wraps the collection's standard_icon_url in an image tag diff --git a/app/helpers/skins_helper.rb b/app/helpers/skins_helper.rb index 9c2f703b23..73bd2af987 100644 --- a/app/helpers/skins_helper.rb +++ b/app/helpers/skins_helper.rb @@ -11,11 +11,11 @@ def skin_author_link(skin) def skin_preview_display(skin) return unless skin&.icon&.attached? - link_to image_tag(skin.icon.variant(:standard).processed.url, + link_to image_tag(rails_blob_url(skin.icon.variant(:standard)), alt: skin.icon_alt_text, class: "icon", skip_pipeline: true), - skin.icon.url + rails_blob_url(skin.icon) end # Fetches the current skin. This is determined by the following diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index f3252c781e..f51e9e0aa2 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -24,7 +24,7 @@ def print_pseuds(user) def standard_icon(pseud = nil) return "/images/skins/iconsets/default/icon_user.png" unless pseud&.icon&.attached? - pseud.icon.variant(:standard).processed.url + rails_blob_url(pseud.icon.variant(:standard)) end # no alt text if there isn't specific alt text