From d4e36167f53b59f128f2ed6d092deb2f2a3005c1 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 14 Oct 2011 15:59:00 -0700 Subject: [PATCH] remove featured users for now --- lib/stream/soup.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/stream/soup.rb b/lib/stream/soup.rb index 9d74cedf4..1d74ba365 100644 --- a/lib/stream/soup.rb +++ b/lib/stream/soup.rb @@ -14,7 +14,7 @@ class Stream::Soup < Stream::Base def posts @posts ||= lambda do post_ids = aspect_posts_ids + followed_tag_ids + mentioned_post_ids - post_ids += featured_user_post_ids + post_ids += featured_user_post_ids if include_featured_users? Post.where(:id => post_ids).for_a_stream(max_time, order) end.call end @@ -25,6 +25,10 @@ class Stream::Soup < Stream::Base private + def include_featured_users? + false + end + def aspect_posts_ids @aspect_posts_ids ||= user.visible_post_ids(:limit => 15, :order => "#{order} DESC", :max_time => max_time, :all_aspects? => true, :by_members_of => aspect_ids) end