comparison 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
comparison
equal deleted inserted replaced
139:ee5876dd9b45 140:bef9b0c1d273
3 <id><%= atom_id(@user.id) %></id> 3 <id><%= atom_id(@user.id) %></id>
4 4
5 <link rel="alternate" type="text/html" href="https://twitter.com/<%= @user.screen_name %>" /> 5 <link rel="alternate" type="text/html" href="https://twitter.com/<%= @user.screen_name %>" />
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" /> 6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
7 7
8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title> 8 <title><%= "#{@user.name.printable} (#{@user.screen_name})" %></title>
9 <icon><%= @user.profile_image_url_https %></icon> 9 <icon><%= @user.profile_image_url_https %></icon>
10 <logo><%= @user.profile_image_url_https %></logo> 10 <logo><%= @user.profile_image_url_https %></logo>
11 11
12 <updated><%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %></updated> 12 <updated><%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %></updated>
13 13