Merge pull request #993 from kmycode/kbtopic-fix-stl-feed

Fix: STL配置判定時、エラーで落ちる問題
This commit is contained in:
KMY(雪あすか) 2025-03-14 19:14:56 +09:00 committed by GitHub
parent 6a3c70c4ff
commit a24031b527
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 3 deletions

View file

@ -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)