Mercurial > rsstweet
comparison app/views/tweets/_tweet.atom.erb @ 234:7a773720d81f legit-client
Totally legit client
author | nanaya <me@nanaya.net> |
---|---|
date | Fri, 14 Jul 2023 22:42:20 +0900 |
parents | e07f6ea17deb |
children |
comparison
equal
deleted
inserted
replaced
233:0f0cc55ff11b | 234:7a773720d81f |
---|---|
1 <entry> | 1 <entry> |
2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> | 2 <% |
3 <published><%= tweet.created_at.xmlschema %></published> | 3 created_at = tweet[:created_at].xmlschema |
4 <updated><%= tweet.created_at.xmlschema %></updated> | 4 %> |
5 <id><%= atom_id "#{tweet[:user][:id]}/#{tweet[:id]}" %></id> | |
6 <published><%= created_at %></published> | |
7 <updated><%= created_at %></updated> | |
5 <link rel="alternate" type="text/html" href="<%= status_url(tweet) %>"/> | 8 <link rel="alternate" type="text/html" href="<%= status_url(tweet) %>"/> |
6 <title><%= truncate tweet.unescaped_text, :length => 30 %></title> | 9 <title><%= truncate tweet[:message], :length => 30 %></title> |
7 <content type="html"> | 10 <content type="html"> |
8 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %> | 11 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %> |
9 </content> | 12 </content> |
10 <author> | 13 <author> |
11 <name><%= tweet.user.screen_name %></name> | 14 <name><%= tweet[:user][:username] %></name> |
12 </author> | 15 </author> |
13 </entry> | 16 </entry> |