Adding a block model and filter mentions from blocked users (fix #60)
This commit is contained in:
parent
a488b05726
commit
9d59d7b463
11 changed files with 55 additions and 12 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 FeedManager.instance.filter?(type, status, account)
|
||||
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
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue