Mercurial > rsstweet
view app/views/tweets/_tweet.atom.erb @ 100:c1d5d8be92c6
Add support for extended tweets
author | nanaya <me@myconan.net> |
---|---|
date | Fri, 23 Sep 2016 23:02:16 +0900 |
parents | 0c8a8b390145 |
children | f4805ac41656 |
line wrap: on
line source
<entry> <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> <published><%= tweet.created_at %></published> <updated><%= tweet.created_at %></updated> <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/> <title><%= ellipsize tweet.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>