potentially fixes #1701

adds tag params to link href for posts and posts.atom
This commit is contained in:
ghostrigger
2013-06-01 11:39:22 +09:00
parent 2ac6a03271
commit 712dbccbc7

View File

@@ -2,8 +2,8 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<title><%= Danbooru.config.app_name %></title>
<link href="http://<%= Danbooru.config.hostname %>/posts.atom" rel="self"/>
<link href="http://<%= Danbooru.config.hostname %>/posts" rel="alternate"/>
<link href="http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %>" rel="self"/>
<link href="http://<%= Danbooru.config.hostname %>/posts?tags=<%= params[:tags] %>" rel="alternate"/>
<id>http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %></id>
<% if @posts.any? %>
<updated><%= @posts[0].created_at.gmtime.xmlschema %></updated>