comparison app/views/tweets/_tweet.atom.erb @ 204:70e90ea4b870

Fix uri for nil user
author nanaya <me@nanaya.pro>
date Mon, 19 Oct 2020 04:08:30 +0900
parents df4be896ab8b
children e07f6ea17deb
comparison
equal deleted inserted replaced
203:af84c9f23263 204:70e90ea4b870
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.xmlschema %></published> 3 <published><%= tweet.created_at.xmlschema %></published>
4 <updated><%= tweet.created_at.xmlschema %></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="<%= status_url(tweet) %>"/>
6 <title><%= truncate tweet.unescaped_text, :length => 30 %></title> 6 <title><%= truncate tweet.unescaped_text, :length => 30 %></title>
7 <content type="xhtml"> 7 <content type="xhtml">
8 <div xmlns="http://www.w3.org/1999/xhtml"> 8 <div xmlns="http://www.w3.org/1999/xhtml">
9 <%= render :partial => "tweet", :formats => :html, :locals => { :tweet => tweet } %> 9 <%= render :partial => "tweet", :formats => :html, :locals => { :tweet => tweet } %>
10 </div> 10 </div>