Permalink
Browse files

make Atom validate by providing entry:updated element

  • Loading branch information...
mislav committed Jan 11, 2013
1 parent 797567b commit 769835f6fb678f84787a69b16370e3303676b9b0
Showing with 3 additions and 1 deletion.
  1. +3 −1 app.rb
View
4 app.rb
@@ -546,7 +546,9 @@ def photos_by_tag(tag)
xml.entry do
xml.title((photo.caption && photo.caption.text) || 'Photo')
xml.id "tag:#{request.host},#{schema_date}:Instagram::Media/#{photo.id}"
- xml.published Time.at(photo.created_time.to_i).xmlschema
+ published_at = Time.at(photo.created_time.to_i).xmlschema
+ xml.published published_at
+ xml.updated published_at
if popular
xml.link rel: 'alternate', type: 'text/html', href: user_url(photo.user.id)

0 comments on commit 769835f

Please sign in to comment.