From 3f0e5a19b7d6f988b3dd7dd740b887f361628193 Mon Sep 17 00:00:00 2001 From: Jesse Chan-Norris Date: Fri, 28 Apr 2017 14:45:38 -0400 Subject: [PATCH] Revert 601dfd93f230 (which removed images from atom feed if a project had no image) While technically correct, we use some external services that rely on an image enclosure to be in place, so just for consistency, we'll always include an image, even if it's the placeholder. --- app/views/funded_projects/index.xml.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/funded_projects/index.xml.builder b/app/views/funded_projects/index.xml.builder index 62d83928..9e72fa82 100644 --- a/app/views/funded_projects/index.xml.builder +++ b/app/views/funded_projects/index.xml.builder @@ -7,7 +7,7 @@ atom_feed(language: I18n.locale) do |feed| entry.title "#{project.chapter.name} – #{project.title}" entry.content(project.funded_description, type: 'html') - if project.has_images? && mime_type = MIME::Types.type_for(project.primary_image.url).first + if mime_type = MIME::Types.type_for(project.primary_image.url).first entry.link(href: image_url(project.primary_image.url), rel: 'enclosure', type: mime_type) end