Skip to content

A platform for community discussion. Free, open, simple.

FIX: Add metadata to `/hot` RSS feed (#31766)

Penar Musaraj69fa96df21b1
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 1789cbd9ec4..672f7935650 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -267,6 +267,11 @@ class ListController < ApplicationController
def hot_feed
discourse_expires_in 1.minute
+ @title = "#{SiteSetting.title} - #{I18n.t("rss_description.hot")}"
+ @link = "#{Discourse.base_url}/hot"
+ @atom_link = "#{Discourse.base_url}/hot.rss"
+ @description = I18n.t("rss_description.hot")
+
@topic_list = TopicQuery.new(nil).list_hot
render "list", formats: [:rss]