diff 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
line wrap: on
line diff
--- a/app/views/tweets/_tweet.atom.erb	Mon Oct 19 03:42:22 2020 +0900
+++ b/app/views/tweets/_tweet.atom.erb	Mon Oct 19 04:08:30 2020 +0900
@@ -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">