summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/application.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index 98cb4a827..abf621641 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -150,6 +150,7 @@ class ApplicationController < ActionController::Base
def render_feed(items, options={})
@items = items || []
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
+ @items = @items.slice(0, Setting.feeds_limit.to_i)
@title = options[:title] || Setting.app_title
render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'
end