From 4b357ecf98f373f5ed31c71ecc1a79d23572cd00 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 2 Nov 2016 22:29:19 +0100 Subject: Fix subtle bugs, new icon button --- app/services/precompute_feed_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/precompute_feed_service.rb b/app/services/precompute_feed_service.rb index 6b259fe80..eb5f48575 100644 --- a/app/services/precompute_feed_service.rb +++ b/app/services/precompute_feed_service.rb @@ -6,7 +6,7 @@ class PrecomputeFeedService < BaseService def call(type, account, limit) instant_return = [] - Status.send("as_#{type}_timeline", account).order('created_at desc').limit(FeedManager::MAX_ITEMS).find_each do |status| + Status.send("as_#{type}_timeline", account).order('id desc').limit(FeedManager::MAX_ITEMS).find_each do |status| next if FeedManager.instance.filter?(type, status, account) redis.zadd(FeedManager.instance.key(type, account.id), status.id, status.id) instant_return << status unless instant_return.size > limit -- cgit