diff app/views/tweets/show.atom.erb @ 140:bef9b0c1d273

Ensure printable name everywhere
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 04:22:11 +0900
parents ee5876dd9b45
children 7a773720d81f
line wrap: on
line diff
--- a/app/views/tweets/show.atom.erb	Wed Dec 13 04:21:48 2017 +0900
+++ b/app/views/tweets/show.atom.erb	Wed Dec 13 04:22:11 2017 +0900
@@ -5,7 +5,7 @@
   <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>
+  <title><%= "#{@user.name.printable} (#{@user.screen_name})" %></title>
   <icon><%= @user.profile_image_url_https %></icon>
   <logo><%= @user.profile_image_url_https %></logo>