remove featured users for now

This commit is contained in:
Maxwell Salzberg 2011-10-14 15:59:00 -07:00
parent ce309ebad3
commit d4e36167f5

View file

@ -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