changeset 139:ee5876dd9b45

Link alt to main twitter
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 04:21:48 +0900
parents 7907fe886675
children bef9b0c1d273
files app/views/tweets/show.atom.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/tweets/show.atom.erb	Wed Dec 13 03:46:32 2017 +0900
+++ b/app/views/tweets/show.atom.erb	Wed Dec 13 04:21:48 2017 +0900
@@ -2,7 +2,7 @@
 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
   <id><%= atom_id(@user.id) %></id>
 
-  <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" />
+  <link rel="alternate" type="text/html" href="https://twitter.com/<%= @user.screen_name %>" />
   <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
 
   <title><%= "#{@user.name} (#{@user.screen_name})" %></title>