comparison app/views/tweets/show.atom.erb @ 234:7a773720d81f legit-client

Totally legit client
author nanaya <me@nanaya.net>
date Fri, 14 Jul 2023 22:42:20 +0900
parents bef9b0c1d273
children
comparison
equal deleted inserted replaced
233:0f0cc55ff11b 234:7a773720d81f
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom"> 2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
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[:username] %>" />
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.printable} (#{@user.screen_name})" %></title> 8 <title><%= "#{@user[:name].printable} (#{@user[:username]})" %></title>
9 <icon><%= @user.profile_image_url_https %></icon> 9 <icon><%= @user[:avatar_url] %></icon>
10 <logo><%= @user.profile_image_url_https %></logo> 10 <logo><%= @user[:avatar_url] %></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
14 <%= render :partial => "tweet", :collection => @tweets, :cached => true %> 14 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
15 </feed> 15 </feed>