This commit is contained in:
r888888888
2017-05-30 12:36:07 -07:00
parent 6eb5a4c017
commit 1478eff561
3 changed files with 3 additions and 3 deletions

View File

@@ -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?

View File

@@ -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))

View File

@@ -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))