annotate app/views/tweets/show.atom.erb @ 242:3ac13a9e593d legit-client

Fix wrong expanded media url
author nanaya <me@nanaya.net>
date Sat, 15 Jul 2023 21:03:39 +0900
parents 7a773720d81f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
3 <id><%= atom_id(@user[:id]) %></id>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
5 <link rel="alternate" type="text/html" href="https://twitter.com/<%= @user[:username] %>" />
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
8 <title><%= "#{@user[:name].printable} (#{@user[:username]})" %></title>
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
9 <icon><%= @user[:avatar_url] %></icon>
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
10 <logo><%= @user[:avatar_url] %></logo>
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
11
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
12 <updated><%= (@tweets.first.try(:[], :created_at) || Time.at(0)).xmlschema %></updated>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
13
96
148d8c17cb79 Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents: 95
diff changeset
14 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
15 </feed>