comparison app/views/tweets/_tweet.atom.erb @ 106:3ad8e6d20e79

Fix atom feed compliances - date format according to xml - no spacing for updated tag
author nanaya <me@myconan.net>
date Sun, 16 Oct 2016 05:45:21 +0900
parents f2398d2a6859
children 0c60db0a3686
comparison
equal deleted inserted replaced
105:ad464c8b6991 106:3ad8e6d20e79
1 <entry> 1 <entry>
2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> 2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id>
3 <published><%= tweet.created_at %></published> 3 <published><%= tweet.created_at.xmlschema %></published>
4 <updated><%= tweet.created_at %></updated> 4 <updated><%= tweet.created_at.xmlschema %></updated>
5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/> 5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
6 <title><%= ellipsize tweet.attrs[:full_text] %></title> 6 <title><%= ellipsize tweet.attrs[:full_text] %></title>
7 <content type="html"> 7 <content type="html">
8 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %> 8 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %>
9 </content> 9 </content>