Preparing feeds for better filtering
This commit is contained in:
parent
1fce687f8e
commit
be86d4e0a3
5 changed files with 22 additions and 9 deletions
|
@ -7,7 +7,7 @@ class PrecomputeFeedService < BaseService
|
|||
instant_return = []
|
||||
|
||||
Status.send("as_#{type}_timeline", account).order('created_at desc').limit(FeedManager::MAX_ITEMS).find_each do |status|
|
||||
next if type == :home && FeedManager.instance.filter_status?(status, account)
|
||||
next 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
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue