For small thumbnails, use 180x180 thumbnails scaled down to 150x150. This is so we can get rid of 150x150 images and just use 180x180 for both small and medium size thumbnails. Also fix RSS feeds, XML sitemaps, and Discord embeds to use 360x360 thumbnails instead of 150x150 thumbnails.
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<title><%= Danbooru.config.app_name %><% if !params[:tags].blank? %>: <%= params[:tags] %><% end %></title>
|
|
<link href="<%= posts_url(tags: params[:tags], format: :atom) %>" rel="self"/>
|
|
<link href="<%= posts_url(tags: params[:tags]) %>" rel="alternate"/>
|
|
<id><%= posts_url(tags: params[:tags], format: :atom) %></id>
|
|
<% if @posts.any? %>
|
|
<updated><%= @posts[0].created_at.gmtime.xmlschema %></updated>
|
|
<% end %>
|
|
<author><name><%= Danbooru.config.app_name %></name></author>
|
|
|
|
<% @posts.select(&:visible?).each do |post| %>
|
|
<entry>
|
|
<title><%= post.presenter.humanized_essential_tag_string %></title>
|
|
<link href="<%= post_url(post) %>" rel="alternate"/>
|
|
<% if post.source =~ %r{\Ahttps?://} %>
|
|
<link href="<%= post.source %>" rel="related"/>
|
|
<% end %>
|
|
<id><%= post_url(post) %></id>
|
|
<updated><%= post.created_at.gmtime.xmlschema %></updated>
|
|
<summary><%= post.tag_string %></summary>
|
|
<content type="xhtml">
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
<%= link_to post_url(post) do %>
|
|
<%= image_tag post.media_asset.variant("360x360").file_url %>
|
|
<% end %>
|
|
<p><%= post.tag_string %></p>
|
|
</div>
|
|
</content>
|
|
<author>
|
|
<name><%= post.uploader.name %></name>
|
|
</author>
|
|
</entry>
|
|
<% end %>
|
|
</feed>
|