diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-05 03:18:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 03:18:42 +0200 |
commit | bdaf31bcc91d309d667b173bfa660f74d5569474 (patch) | |
tree | c36c6c1f2bbc52e5e1d3067db2fbdb202bc1626b /app/services/precompute_feed_service.rb | |
parent | 58bdb9b42ee90ca2723ac28c0f45af40df1c6383 (diff) | |
parent | 086a88f3bb3e09ade9d5659d60e5b0445b30dbed (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 |