Fix uri for nil user
M app/helpers/application_helper.rb +4 -0
@@ 20,4 20,8 @@ module ApplicationHelper
       urls[url] || url
     end
   end
+
+  def status_url(tweet)
+    "https://twitter.com/#{tweet.user.screen_name.presence || '_'}/status/#{tweet.id}"
+  end
 end

          
M app/views/tweets/_tweet.atom.erb +1 -1
@@ 2,7 2,7 @@ 
   <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 %>"/>
+  <link rel="alternate" type="text/html" href="<%= status_url(tweet) %>"/>
   <title><%= truncate tweet.unescaped_text, :length => 30 %></title>
   <content type="xhtml">
     <div xmlns="http://www.w3.org/1999/xhtml">

          
M app/views/tweets/_tweet.html.erb +1 -1
@@ 1,6 1,6 @@ 
 <% if tweet.retweeted_status.present? %>
   <p>
-    <%= link_to tweet.retweeted_status.uri.to_s do %>
+    <%= link_to status_url(tweet.retweeted_status) do %>
       <em>Retweeted:</em>
     <% end %>
   </p>