Skip to content

Commit

Permalink
Merge pull request awesomefoundation#264 from awesomefoundation/atom-…
Browse files Browse the repository at this point in the history
…image

Revert 601dfd9 (which removed images from atom feed if a project had no image)
  • Loading branch information
jcn authored Apr 28, 2017
2 parents 4622d0c + 3f0e5a1 commit eb66ebe
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 eb66ebe

Please sign in to comment.