Fix PrecomputeFeedService for filtered statuses (#4148)
This commit is contained in:
parent
958fe0f7db
commit
7bacdd718a
2 changed files with 14 additions and 2 deletions
|
@ -23,5 +23,17 @@ RSpec.describe PrecomputeFeedService do
|
|||
account = Fabricate(:account)
|
||||
subject.call(account)
|
||||
end
|
||||
|
||||
it 'filters statuses' do
|
||||
account = Fabricate(:account)
|
||||
muted_account = Fabricate(:account)
|
||||
Fabricate(:mute, account: account, target_account: muted_account)
|
||||
reblog = Fabricate(:status, account: muted_account)
|
||||
status = Fabricate(:status, account: account, reblog: reblog)
|
||||
|
||||
subject.call(account)
|
||||
|
||||
expect(Redis.current.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to eq nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue