Commit e170829b authored by danielgrippi's avatar danielgrippi

pull back less Person objects in the stream query.

parent b0ef88fb
......@@ -244,7 +244,7 @@ module Diaspora
def construct_public_followings_sql(opts)
aspects = Aspect.where(:id => opts[:by_members_of])
person_ids = people_in_aspects(aspects).map{|p|}
person_ids = Person.connection.select_values(people_in_aspects(aspects).select("id").to_sql)
query = opts[:klass].where(:author_id => person_ids, :public => true, :pending => false)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment