Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make Atom validate by providing entry:updated element

  • Loading branch information...
commit 769835f6fb678f84787a69b16370e3303676b9b0 1 parent 797567b
@mislav authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.