Fix subsequent replies to unresolved status not being filtered from home (#4190)
Resolves #4177 - smaller changeset
This commit is contained in:
parent
72bd73f605
commit
de397f3bc1
2 changed files with 11 additions and 3 deletions
|
@ -81,6 +81,13 @@ RSpec.describe FeedManager do
|
|||
expect(FeedManager.instance.filter?(:home, reply, bob.id)).to be true
|
||||
end
|
||||
|
||||
it 'returns true for the second reply by followee to a non-federated status' do
|
||||
reply = Fabricate(:status, text: 'Reply 1', reply: true, account: alice)
|
||||
second_reply = Fabricate(:status, text: 'Reply 2', thread: reply, account: alice)
|
||||
bob.follow!(alice)
|
||||
expect(FeedManager.instance.filter?(:home, second_reply, bob.id)).to be true
|
||||
end
|
||||
|
||||
it 'returns false for status by followee mentioning another account' do
|
||||
bob.follow!(alice)
|
||||
status = PostStatusService.new.call(alice, 'Hey @jeff')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue