Skip to content

Commit 09a2536

Browse files
committed
Limit only published posts to the RSS Feed
1 parent db2cfec commit 09a2536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/rss/v2/rss_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class RssController < ApplicationController
44
include RssHelper
55

66
def index
7-
@content_items = rss_content_type.content_items
7+
@content_items = rss_content_type.content_items.select { |content_item| content_item.state == "published" }
88
end
99
end
1010
end

0 commit comments

Comments
 (0)