diff --git a/lib/stream/soup.rb b/lib/stream/soup.rb index 9d74cedf4eb2a4fe4f703ab872461c54b59a8d11..1d74ba36560d17dccdf04468b5e48ed37c2c4c21 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