lib/tekeya/entity.rb in tekeya-0.0.6 vs lib/tekeya/entity.rb in tekeya-0.0.7

- old
+ new

@@ -307,10 +307,10 @@ recent_activities_count = ::Tekeya.redis.zcard(pkey) # Check if the cache is not empty if recent_activities_count > 0 # Retrieve the aggregate keys from redis - acts_keys = ::Tekeya.redis.zrange(pkey, 0, -1) + acts_keys = ::Tekeya.redis.zrevrange(pkey, 0, -1) # Retrieve the aggregates acts_keys.each do |act_key| acts << ::Tekeya::Feed::Activity::Item.from_redis(act_key, self) end else