Merge pull request #993 from kmycode/kbtopic-fix-stl-feed
Fix: STL配置判定時、エラーで落ちる問題
This commit is contained in:
parent
6a3c70c4ff
commit
a24031b527
2 changed files with 14 additions and 3 deletions
|
@ -255,6 +255,17 @@ RSpec.describe FeedManager do
|
|||
end
|
||||
end
|
||||
|
||||
context 'with stl list feed' do
|
||||
let(:antenna) { Fabricate(:antenna, account: bob, insert_feeds: true, list_id: list.id, stl: true) }
|
||||
let(:list) { Fabricate(:list, account: bob) }
|
||||
|
||||
it "returns false for followee's status" do
|
||||
status = Fabricate(:status, text: 'Hello world', account: alice, visibility: :unlisted)
|
||||
|
||||
expect(subject.filter?(:list, status, list, stl_home: true)).to be false
|
||||
end
|
||||
end
|
||||
|
||||
context 'with mentions feed' do
|
||||
it 'returns true for status that mentions blocked account' do
|
||||
bob.block!(jeff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue