Skip to content

Commit

Permalink
Revert 601dfd9 (which removed images from atom feed if a project had …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
jcn committed Apr 28, 2017
1 parent 4622d0c commit 3f0e5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/funded_projects/index.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f0e5a1

Please sign in to comment.