From 1478eff5613b41df32c0a8a45f038ca47a385433 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 30 May 2017 12:36:07 -0700 Subject: [PATCH] fixes #3098 --- app/views/comments/index.atom.builder | 2 +- app/views/forum_topics/index.atom.builder | 2 +- app/views/forum_topics/show.atom.builder | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/comments/index.atom.builder b/app/views/comments/index.atom.builder index e5458fac7..6729130a1 100644 --- a/app/views/comments/index.atom.builder +++ b/app/views/comments/index.atom.builder @@ -1,4 +1,4 @@ -atom_feed do |feed| +atom_feed(root_url: comments_path(host: Danbooru.config.hostname, only_path: false)) do |feed| title = "Comments" title += " by #{params[:search][:creator_name]}" if params.dig(:search, :creator_name).present? title += " on #{params[:search][:post_tags_match]}" if params.dig(:search, :post_tags_match).present? diff --git a/app/views/forum_topics/index.atom.builder b/app/views/forum_topics/index.atom.builder index c610dc19a..57ef56065 100644 --- a/app/views/forum_topics/index.atom.builder +++ b/app/views/forum_topics/index.atom.builder @@ -1,4 +1,4 @@ -atom_feed do |feed| +atom_feed(root_url: forum_topics_path(host: Danbooru.config.hostname, only_path: false)) do |feed| feed.title("Forum Topics") feed.updated(@forum_topics.first.try(:updated_at)) diff --git a/app/views/forum_topics/show.atom.builder b/app/views/forum_topics/show.atom.builder index c946e9eda..8328e0ee9 100644 --- a/app/views/forum_topics/show.atom.builder +++ b/app/views/forum_topics/show.atom.builder @@ -1,4 +1,4 @@ -atom_feed do |feed| +atom_feed(root_url: forum_topic_path(@forum_topic, host: Danbooru.config.hostname, only_path: false)) do |feed| feed.title(@forum_topic.title) feed.updated(@forum_topic.try(:updated_at))