From 9453f65b7d3f1d4f16a43f4bc87a694326870703 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Wed, 8 Jun 2011 12:00:08 -0700 Subject: [PATCH] Limit posts in the RSS feed, wecan come back to this and not limit it, and instead cache the static feed, when we have a little more time. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index b29fb736a..5c82269ff 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -69,7 +69,7 @@ class UsersController < ApplicationController if user = User.find_by_username(params[:username]) respond_to do |format| format.atom do - posts = StatusMessage.where(:author_id => user.person.id, :public => true).order('created_at DESC') + posts = StatusMessage.where(:author_id => user.person.id, :public => true).order('created_at DESC').limit(25) director = Diaspora::Director.new ostatus_builder = Diaspora::OstatusBuilder.new(user, posts) render :xml => director.build(ostatus_builder), :content_type => 'application/atom+xml'