diff --git a/lib/diaspora/redis_cache.rb b/lib/diaspora/redis_cache.rb index 742304a93750a923b688f05464f429ee27227255..ce4187965843da73bc364a40870cab96630a2bc0 100644 --- a/lib/diaspora/redis_cache.rb +++ b/lib/diaspora/redis_cache.rb @@ -45,7 +45,7 @@ class RedisCache def populate! # user executes query and gets back hashes - sql = @user.visible_posts_sql(:limit => CACHE_LIMIT, :order => self.order) + sql = @user.visible_posts_sql(:type => AspectStream::TYPES_OF_POST_IN_STREAM, :limit => CACHE_LIMIT, :order => self.order) hashes = Post.connection.select_all(sql) # hashes are inserted into set in a single transaction