0
0
Fork 0

Fix subsequent replies to unresolved status not being filtered from home (#4190)

Resolves #4177 - smaller changeset
This commit is contained in:
Eugen Rochko 2017-07-14 22:31:38 +02:00 committed by GitHub
parent 72bd73f605
commit de397f3bc1
2 changed files with 11 additions and 3 deletions

View file

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