Mercurial > rsstweet
view 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 |
line wrap: on
line source
<entry> <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> <published><%= tweet.created_at.xmlschema %></published> <updated><%= tweet.created_at.xmlschema %></updated> <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/> <title><%= ellipsize tweet.attrs[:full_text] %></title> <content type="html"> <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %> </content> <author> <name><%= tweet.user.screen_name %></name> </author> </entry>