diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-05 03:19:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 03:19:14 +0200 |
commit | 78c1e2e9582f582b627e0144076bb76a886a41c2 (patch) | |
tree | 259de6b676b6ca29687faa770089e3957049ea65 /app/services/precompute_feed_service.rb | |
parent | 7015578655553b89e0184e6fe10b88075f4d8446 (diff) | |
parent | ab98591af83ef7a617a877cc8519b203e0481e8a (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'app/services/precompute_feed_service.rb')
-rw-r--r-- | app/services/precompute_feed_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/precompute_feed_service.rb b/app/services/precompute_feed_service.rb index a57c401d0..07dcb81da 100644 --- a/app/services/precompute_feed_service.rb +++ b/app/services/precompute_feed_service.rb @@ -7,7 +7,7 @@ class PrecomputeFeedService < BaseService def call(_, account) redis.pipelined do Status.as_home_timeline(account).limit(FeedManager::MAX_ITEMS / 4).each do |status| - next if status.direct_visibility? || FeedManager.instance.filter?(:home, status, account) + next if status.direct_visibility? || FeedManager.instance.filter?(:home, status, account.id) redis.zadd(FeedManager.instance.key(:home, account.id), status.id, status.reblog? ? status.reblog_of_id : status.id) end end |